Exit with exit status 1 if a test fails (required by runtests.sh)

This commit is contained in:
macbishop 2007-02-17 14:52:51 +00:00
parent 17f112d4c2
commit 0363ecf25d

View File

@ -7,7 +7,7 @@ if [ "$1" == "" ]
then then
echo "USAGE: testCheck.sh <test num>" echo "USAGE: testCheck.sh <test num>"
else else
cmd="test$1.sh" cmd="./test$1.sh"
out="test$1.out" out="test$1.out"
$cmd $cmd
if cmp -s tmp.out $out if cmp -s tmp.out $out
@ -30,5 +30,6 @@ else
echo echo
diff tmp.out $out diff tmp.out $out
echo echo
exit 1
fi fi
fi fi