From: Zbigniew Jędrzejewski-Szmek Date: Mon, 21 Sep 2020 22:00:59 +0000 (+0200) Subject: test/run-integration-tests: do not run the tests if only "clean" is passed X-Git-Tag: v247-rc1~173^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=abf6346c5e65ec1ab1f83841e9bd07a2e301dde8;p=thirdparty%2Fsystemd.git test/run-integration-tests: do not run the tests if only "clean" is passed --- diff --git a/test/run-integration-tests.sh b/test/run-integration-tests.sh index ac7a28cf2cd..04b8385be9a 100755 --- a/test/run-integration-tests.sh +++ b/test/run-integration-tests.sh @@ -7,7 +7,7 @@ if [ $# -gt 0 ]; then else args="setup run clean-again" fi -args_no_clean=$(sed -r 's/(^| )clean($| )/ /g' <<<$args) +args_no_clean=$(sed -r 's/\bclean\b//g' <<<$args) do_clean=$( [ "$args" = "$args_no_clean" ]; echo $? ) ninja -C "$BUILD_DIR" @@ -26,6 +26,8 @@ if [ $do_clean = 1 ]; then for TEST in TEST-??-* ; do ( set -x ; make -C "$TEST" "BUILD_DIR=$BUILD_DIR" clean ) done + + [ -n "$args_no_clean" ] || exit 0 fi pass_blacklist() {