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