Use 0 exit code for skipped tests in legacy runner

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.
This commit is contained in:
Tom Krizek 2023-09-20 13:45:41 +02:00
parent 20c8fab299
commit 8c1a1b304c
No known key found for this signature in database
GPG key ID: 01623B9B652A20A7

View 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