about summary refs log tree commit diff stats
path: root/test/test_all.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2014-10-02 14:38:26 +0200
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2014-10-02 14:38:26 +0200
commita986cf7e9ea7368d4f44e56fb33ef5c8386774a0 (patch)
tree5a7b82a2d82fb97f50848b61bc3da4c5e1bab987 /test/test_all.py
parent8db426e63ea49dffada651a22d5c5ad9ffd93d68 (diff)
parent9ab363a5a34f35ce9d9f31d93ae28a09b7f10195 (diff)
downloadmiasm-a986cf7e9ea7368d4f44e56fb33ef5c8386774a0.tar.gz
miasm-a986cf7e9ea7368d4f44e56fb33ef5c8386774a0.zip
merge
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 848c0c66..11ea1c3a 100644
--- a/test/test_all.py
+++ b/test/test_all.py
@@ -329,6 +329,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):
 
@@ -437,10 +438,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()