aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2016-06-02 09:43:12 -0700
committerJohn MacFarlane <jgm@berkeley.edu>2016-06-02 09:43:12 -0700
commit36d2b7ecd1d4b1686e80744712ddf2cfc8594958 (patch)
treea4b742373f967c64418856573cd17f5572a1453f
parent380f55f2b51729c6d602c5c2085632f09c0cb6db (diff)
spec_tests.py: exit code is sum of failures and errors.
-rwxr-xr-xtest/spec_tests.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py
index 1521a82..365ff75 100755
--- a/test/spec_tests.py
+++ b/test/spec_tests.py
@@ -140,7 +140,4 @@ if __name__ == "__main__":
for test in tests:
do_test(test, args.normalize, result_counts)
out("{pass} passed, {fail} failed, {error} errored, {skip} skipped\n".format(**result_counts))
- if result_counts['fail'] == 0 and result_counts['error'] == 0:
- exit(0)
- else:
- exit(1)
+ exit(result_counts['fail'] + result_counts['error'])