summaryrefslogtreecommitdiffstats
path: root/xlate-test.py
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2022-10-15 11:43:01 +0200
committerPhil Sutter <phil@nwl.cc>2022-12-14 15:47:18 +0100
commitc32410edee6a855a1557359caecc5f0b98d8cbe1 (patch)
treefa48839332809ae1699c72a80bd55946604a30b8 /xlate-test.py
parent19f03b7a2a21f22a53b6b0d2f542062986e2f807 (diff)
tests: Adjust testsuite return codes to automake guidelines
As per the manual[1]: "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." [1] https://www.gnu.org/software/automake/manual/html_node/Scripts_002dbased-Testsuites.html Signed-off-by: Phil Sutter <phil@nwl.cc>
Diffstat (limited to 'xlate-test.py')
-rwxr-xr-xxlate-test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/xlate-test.py b/xlate-test.py
index 4f037ef6..4cb1401b 100755
--- a/xlate-test.py
+++ b/xlate-test.py
@@ -250,7 +250,7 @@ def main():
tests, passed, failed, errors = run_test(args.test, payload)
except IOError:
print(red("Error: ") + "test file does not exist", file=sys.stderr)
- return -1
+ return 99
else:
files, tests, passed, failed, errors = load_test_files()