From: Alex Rousskov Date: Mon, 24 Oct 2022 03:18:06 +0000 (+0000) Subject: CI: Fix support for running a subset of GitHub Actions tests (#1171) X-Git-Tag: SQUID_6_0_1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1bfcdb52f6aab14434d733afbb19978818fb1ff6;p=thirdparty%2Fsquid.git CI: Fix support for running a subset of GitHub Actions tests (#1171) The scripts were always running all/default tests instead of those named on the command line (if any). Broken since inception in commit 2ed8cc4. --- diff --git a/test-suite/test-functionality.sh b/test-suite/test-functionality.sh index 0fd2d9f006..3a335e7e93 100755 --- a/test-suite/test-functionality.sh +++ b/test-suite/test-functionality.sh @@ -260,5 +260,5 @@ main() { run_tests $tests } -main +main "$@" exit $? diff --git a/test-suite/test-sources.sh b/test-suite/test-sources.sh index e8bfb33aac..736f276de0 100755 --- a/test-suite/test-sources.sh +++ b/test-suite/test-sources.sh @@ -229,7 +229,8 @@ main() { fi echo "Starting point: $STARTING_POINT (`git rev-parse $STARTING_POINT`)" - checks="$@" + local checks="$@" + if test -z "$checks" then local default_checks=" @@ -243,5 +244,5 @@ main() { run_checks $checks } -main +main "$@" exit $?