Change skipped test error code from 99 to 77

Meson uses a venerable GNU convention described in
https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html
in which:

> When no test protocol is in use, an exit status of 0 from a test
> script will denote a success, an exit status of 77 a skipped test, an
> exit status of 99 a hard error, and any other exit status will denote
> a failure.

77 is thus what we want, not 99.
This commit is contained in:
John Ericson 2024-07-24 22:36:43 -04:00
parent dba1142c01
commit dcbe2453f5
2 changed files with 2 additions and 2 deletions

View file

@ -28,7 +28,7 @@ run_test
if [[ "$status" = 0 ]]; then if [[ "$status" = 0 ]]; then
echo "$post_run_msg [${green}PASS$normal]" echo "$post_run_msg [${green}PASS$normal]"
elif [[ "$status" = 99 ]]; then elif [[ "$status" = 77 ]]; then
echo "$post_run_msg [${yellow}SKIP$normal]" echo "$post_run_msg [${yellow}SKIP$normal]"
else else
echo "$post_run_msg [${red}FAIL$normal]" echo "$post_run_msg [${red}FAIL$normal]"

View file

@ -190,7 +190,7 @@ isDaemonNewer () {
skipTest () { skipTest () {
echo "$1, skipping this test..." >&2 echo "$1, skipping this test..." >&2
exit 99 exit 77
} }
TODO_NixOS() { TODO_NixOS() {