summaryrefslogtreecommitdiffhomepage
path: root/test/run.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/run.py')
-rwxr-xr-xtest/run.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/run.py b/test/run.py
index 749c11d7..01765249 100755
--- a/test/run.py
+++ b/test/run.py
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
import unittest
+import sys
import os
loader = unittest.TestLoader()
@@ -11,4 +12,5 @@ tests = loader.discover(start_dir=this_dir)
suite.addTests(tests)
runner = unittest.TextTestRunner(verbosity=3)
-result = runner.run(suite)
+result = not runner.run(suite).wasSuccessful()
+sys.exit(result)