about summary refs log tree commit diff stats
path: root/test/test_all.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_all.py')
-rw-r--r--test/test_all.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_all.py b/test/test_all.py
index a4cb1063..ad551827 100644
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -330,6 +330,7 @@ def run_test(test, coveragerc=None):
         write_colored("ERROR", "red", len(s))
         print outputs[1]
 
+    return testpy.returncode
 
 def run_test_parallel(test, current, global_state):
 
@@ -438,10 +439,14 @@ if llvm is False:
 
 if multiproc is False:
     done = list()
+    status = 0
     for test in test_iter(done):
-        run_test(test, coveragerc=coveragerc)
+        status |= run_test(test, coveragerc=coveragerc)
         done.append(test)
 
+    # Return an error code if a test failed
+    assert(status == 0)
+
 else:
     # Parallel version
     cpu_c = cpu_count()