]> git.ipfire.org Git - thirdparty/squid.git/commitdiff
CI: Fix support for running a subset of GitHub Actions tests (#1171)
authorAlex Rousskov <rousskov@measurement-factory.com>
Mon, 24 Oct 2022 03:18:06 +0000 (03:18 +0000)
committerSquid Anubis <squid-anubis@squid-cache.org>
Sat, 29 Oct 2022 14:43:53 +0000 (14:43 +0000)
The scripts were always running all/default tests instead of those named
on the command line (if any). Broken since inception in commit 2ed8cc4.

test-suite/test-functionality.sh
test-suite/test-sources.sh

index 0fd2d9f0063a1aded9dc09804f1e3c7a67fa6301..3a335e7e93c3a36cddea474e8b6aba956a68b319 100755 (executable)
@@ -260,5 +260,5 @@ main() {
     run_tests $tests
 }
 
-main
+main "$@"
 exit $?
index e8bfb33aac607934c9deb13b1f47be3a887123a2..736f276de0f54a7b3669020f6934728546bac6b1 100755 (executable)
@@ -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 $?