git.haskell.org
/
ghc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb1f0a4
)
testsuite: Exit with non-zero exit code when tests fail
author
Ben Gamari
<ben@smart-cactus.org>
Thu, 14 Dec 2017 22:08:36 +0000
(17:08 -0500)
committer
Ben Gamari
<ben@smart-cactus.org>
Mon, 18 Dec 2017 16:32:30 +0000
(11:32 -0500)
testsuite/driver/runtests.py
patch
|
blob
|
history
diff --git
a/testsuite/driver/runtests.py
b/testsuite/driver/runtests.py
index
db17f3b
..
74a152e
100644
(file)
--- a/
testsuite/driver/runtests.py
+++ b/
testsuite/driver/runtests.py
@@
-323,7
+323,14
@@
else:
if 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]
#