shelltest: use a more magical magic number for success.
There may be some odd situation where a shell returns 0 despite not executing the script correctly; now 0 is an error condition.
This commit is contained in:
parent
e9e24bb450
commit
b993e449f8
3 changed files with 4 additions and 3 deletions
|
|
@ -2,7 +2,7 @@ set +e
|
|||
( . ./shelltest.od )
|
||||
RV=$?
|
||||
case $RV in
|
||||
0) exit 0 ;;
|
||||
40) exit 0 ;;
|
||||
42) exit 0 ;;
|
||||
*) exit 1 ;;
|
||||
esac
|
||||
|
|
|
|||
|
|
@ -365,4 +365,5 @@ set x y z
|
|||
. ./dotparams.od a b || fail 115
|
||||
[ "$1-$2-$3" = "x-y-z" ] || fail 116
|
||||
|
||||
[ -n "$FAIL" ] || exit 40
|
||||
exit $FAIL
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue