Treat a nonzero exit status as a failure (#3430)

And fix the test cases that have been failing ,undetected
This commit is contained in:
Dustin J. Mitchell
2024-05-03 09:58:09 -04:00
committed by GitHub
parent 50cfbe8b63
commit 28a46880a2
12 changed files with 62 additions and 75 deletions

View File

@@ -47,6 +47,9 @@ def run_test(testqueue, outqueue, threadname):
if sys.version_info > (3,):
out, err = out.decode('utf-8'), err.decode('utf-8')
if p.returncode != 0:
out = out + "\nnot ok - test executable failed\n"
output = ("# {0}\n".format(os.path.basename(test)), out, err)
log.debug("Collected output %s", output)
outqueue.put(output)