]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Use 0 exit code for skipped tests in legacy runner
authorTom Krizek <tkrizek@isc.org>
Wed, 20 Sep 2023 11:45:41 +0000 (13:45 +0200)
committerTom Krizek <tkrizek@isc.org>
Wed, 20 Sep 2023 11:45:41 +0000 (13:45 +0200)
Since the legacy runner is no longer used in the automake test suite,
don't use the special GNU exit code indicating a skipped tests. Instead,
use 0 to avoid considering skipped tests as failed when using simpler
mechanism (such as xargs -P) to run the tests with the legacy runner.

bin/tests/system/legacy.run.sh.in

index 50af41c41dc0848cdadcf20f1e64e5793b3faaf1..501e554e3d2559bae7a9e49271448568d5fdba6d 100644 (file)
@@ -57,7 +57,7 @@ while getopts "sknp:-:t" OPT; do
         k | keep) stopservers=false ;;
         n | noclean) clean=false ;;
         p | port) baseport=$OPTARG ;;
-        s | skip) exit 77 ;;
+        s | skip) exit 0 ;;
         t | restart) restart=true ;;
         -) break ;;
         *) echo "invalid option" >&2; exit 1 ;;
@@ -152,7 +152,7 @@ else
     echowarn "I:$systest:Prerequisites missing, skipping test."
     echowarn "R:$systest:SKIPPED";
     echoend "E:$systest:$(date_with_args)"
-    exit 77
+    exit 0
 fi
 
 # Clean up files left from any potential previous runs except when