summaryrefslogtreecommitdiff
path: root/runtests.sh
diff options
context:
space:
mode:
authorMartin Pool <mbp@samba.org>2001-08-30 06:54:15 +0000
committerMartin Pool <mbp@samba.org>2001-08-30 06:54:15 +0000
commit320989b05d7242149be03cd021d11e7201e4f937 (patch)
treee6e7d635067670e7a16d8883d3d86378914bfe82 /runtests.sh
parent9d682a8dc19a7f74084714ada301804bf0b22176 (diff)
downloadrsync-320989b05d7242149be03cd021d11e7201e4f937.tar.gz
rsync-320989b05d7242149be03cd021d11e7201e4f937.tar.bz2
rsync-320989b05d7242149be03cd021d11e7201e4f937.zip
On BSD, this seemed to always exit after test failure. Try different
shell syntax.
Diffstat (limited to 'runtests.sh')
-rwxr-xr-xruntests.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/runtests.sh b/runtests.sh
index 712bde84..f21371be 100755
--- a/runtests.sh
+++ b/runtests.sh
@@ -169,7 +169,10 @@ do
*)
echo "----- $testbase failed!"
failed=`expr $failed + 1`
- [ "$nopersist" = "yes" ] && exit 1
+ if [ "x$nopersist" = "xyes" ]
+ then
+ exit 1
+ fi
esac
fi
done