Commit 03024395 authored by Ben Gamari's avatar Ben Gamari 🐢
Browse files

testsuite: Exit with non-zero exit code when tests fail

parent fb1f0a46
...@@ -323,7 +323,14 @@ else: ...@@ -323,7 +323,14 @@ else:
if args.junit: if args.junit:
junit(t).write(args.junit) junit(t).write(args.junit)
cleanup_and_exit(0) if len(t.unexpected_failures) > 0 or \
len(t.unexpected_stat_failures) > 0 or \
len(t.framework_failures) > 0:
exitcode = 1
else:
exitcode = 0
cleanup_and_exit(exitcode)
# Note [Running tests in /tmp] # Note [Running tests in /tmp]
# #
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment