mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-14 00:00:00 -04:00
Fail immediatelly when clean.sh or setup.sh fails
The `statschannel/ns2/` was missing `manykeys.db.in`, but the test succeeded even when `setup.sh` (or `clean.sh`) failed to execute. This commit makes run.sh to run in stricter mode and fail the test immediately when `clean.sh` or `setup.sh` fails.
This commit is contained in:
parent
c2ec4ee19d
commit
8b357a35d2
1 changed files with 7 additions and 1 deletions
|
|
@ -187,6 +187,9 @@ if test -f "$systest/clean.sh"
|
|||
then
|
||||
if ! ( cd "${systest}" && $SHELL clean.sh "$@" ); then
|
||||
echowarn "I:$systest:clean.sh script failed"
|
||||
echofail "R:$systest:FAIL"
|
||||
echoend "E:$systest:$(date_with_args)"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
fi
|
||||
|
|
@ -195,7 +198,10 @@ fi
|
|||
if test -f "$systest/setup.sh"
|
||||
then
|
||||
if ! ( cd "${systest}" && $SHELL setup.sh "$@" ); then
|
||||
echowarn "I:$systest:clean.sh script failed"
|
||||
echowarn "I:$systest:setup.sh script failed"
|
||||
echofail "R:$systest:FAIL"
|
||||
echoend "E:$systest:$(date_with_args)"
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue