]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Fail immediatelly when clean.sh or setup.sh fails
authorOndřej Surý <ondrej@isc.org>
Tue, 12 May 2020 08:01:35 +0000 (10:01 +0200)
committerOndřej Surý <ondrej@isc.org>
Tue, 12 May 2020 08:37:48 +0000 (10:37 +0200)
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.

bin/tests/system/run.sh.in

index 62171603574cdb13d4e2e40a925574992fa08716..069ccad0ab108cc985d99986f9beb0aced87e639 100644 (file)
@@ -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