From: Ondřej Surý Date: Mon, 11 May 2020 15:43:12 +0000 (+0200) Subject: Use the result of clean.sh and setup.sh command directly X-Git-Tag: v9.17.2~83^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0fe57533155ee6cbc1befc751636d5a9d7b7f7f7;p=thirdparty%2Fbind9.git Use the result of clean.sh and setup.sh command directly --- diff --git a/bin/tests/system/run.sh.in b/bin/tests/system/run.sh.in index 4585cd039f6..62171603574 100644 --- a/bin/tests/system/run.sh.in +++ b/bin/tests/system/run.sh.in @@ -185,10 +185,8 @@ fi # Clean up files left from any potential previous runs if test -f "$systest/clean.sh" then - ( cd "${systest}" && $SHELL clean.sh "$@" ) - ret=$? - if [ $ret -ne 0 ]; then - echowarn "I:$systest:clean.sh script failed with $ret" + if ! ( cd "${systest}" && $SHELL clean.sh "$@" ); then + echowarn "I:$systest:clean.sh script failed" fi fi @@ -196,10 +194,8 @@ fi # Set up any dynamically generated test data if test -f "$systest/setup.sh" then - ( cd "${systest}" && $SHELL setup.sh "$@" ) - ret=$? - if [ $ret -ne 0 ]; then - echowarn "I:$systest:clean.sh script failed with $ret" + if ! ( cd "${systest}" && $SHELL setup.sh "$@" ); then + echowarn "I:$systest:clean.sh script failed" fi fi