Commit 2f22174f authored by Martin Pool's avatar Martin Pool

Try again to find the right directory on both local and farm builds.

parent d820215b
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
# build farm rsync will be installed, but into a scratch /usr. # build farm rsync will be installed, but into a scratch /usr.
# srcdir gives the location of the source tree, which lets us find the # srcdir gives the location of the source tree, which lets us find the
# build scripts. It might be relative, so we need to make it # build scripts. At the moment we assume we are invoked from the
# absolute. # source directory.
# testdir is a scratch directory for holding temporary test files. # testdir is a scratch directory for holding temporary test files.
...@@ -31,8 +31,8 @@ fi ...@@ -31,8 +31,8 @@ fi
testdir=`cd $testdir && pwd` testdir=`cd $testdir && pwd`
echo "srcdir is originally $srcdir" echo "srcdir is originally \"$srcdir\""
srcdir=`cd $srcdir && pwd` srcdir=`cd "$srcdir" && pwd`
echo "============================================================" echo "============================================================"
echo "$0 running in `pwd`" echo "$0 running in `pwd`"
...@@ -50,15 +50,14 @@ missing=0 ...@@ -50,15 +50,14 @@ missing=0
passed=0 passed=0
failed=0 failed=0
suitedir="$srcdir/testsuite" suitedir=`cd ./testsuite && pwd`
cd "$suitedir"
echo " suitedir=$suitedir" echo " suitedir=$suitedir"
. "$suitedir/config.sh" . "$suitedir/config.sh"
for testbase in $test_names for testbase in $test_names
do do
testscript="./$testbase.test" testscript="$suitedir/$testbase.test"
if test \! -f "$testscript" if test \! -f "$testscript"
then then
echo "$testscript does not exist" >&2 echo "$testscript does not exist" >&2
...@@ -69,7 +68,7 @@ do ...@@ -69,7 +68,7 @@ do
echo "------------------------------------------------------------" echo "------------------------------------------------------------"
echo "----- $testbase running" echo "----- $testbase running"
if sh $testscript if sh "$testscript"
then then
echo "----- $testbase completed succesfully" echo "----- $testbase completed succesfully"
passed=`expr $passed + 1` passed=`expr $passed + 1`
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment