diff options
author | jmallett <jmallett@FreeBSD.org> | 2002-04-21 00:18:29 +0000 |
---|---|---|
committer | jmallett <jmallett@FreeBSD.org> | 2002-04-21 00:18:29 +0000 |
commit | 4ccd5a907365cac010c7ebb0229b7c9d72122ed9 (patch) | |
tree | d0fcfff8b659df1483a0223f280ceb24dce84d45 /tools/regression/usr.bin/uuencode | |
parent | 5de2c9fb38d6f5aa10110d6c287b1c5609a2f691 (diff) | |
download | FreeBSD-src-4ccd5a907365cac010c7ebb0229b7c9d72122ed9.zip FreeBSD-src-4ccd5a907365cac010c7ebb0229b7c9d72122ed9.tar.gz |
Only exit at the end of a test, exit with the last value of $? that was not 0.
This way the entire regression test is looked at as a pass/fail, not just one
sub-test.
Diffstat (limited to 'tools/regression/usr.bin/uuencode')
-rw-r--r-- | tools/regression/usr.bin/uuencode/regress.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tools/regression/usr.bin/uuencode/regress.sh b/tools/regression/usr.bin/uuencode/regress.sh index e0afdab..cce4138 100644 --- a/tools/regression/usr.bin/uuencode/regress.sh +++ b/tools/regression/usr.bin/uuencode/regress.sh @@ -7,6 +7,8 @@ if [ -z "$TESTDIR" ]; then fi cd $TESTDIR +STATUS=0 + # Note that currently the uuencode(1) program provides no facility to # include the file mode explicitly based on an argument passed to it, # so the regress.in file must be mode 644, or the test will say that, @@ -25,7 +27,9 @@ for test in traditional base64; do if [ $? -eq 0 ]; then echo "Test $test detected no regression, output matches." else + STATUS=$? echo "Test $test failed: regression detected. See above." - exit 1 fi done + +exit $STATUS |