summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAndrey Zelenkov <zelenkov@nginx.com>2018-01-15 17:51:54 +0300
committerAndrey Zelenkov <zelenkov@nginx.com>2018-01-15 17:51:54 +0300
commit4c1c6140995951945d14b58f0f92f08281742dc1 (patch)
tree7554fdd5f9b208df3f4797f0c957c56701dd0d70
parentd229549101dc7d0fa4ca13221563c79098ebf56a (diff)
downloadunit-4c1c6140995951945d14b58f0f92f08281742dc1.tar.gz
unit-4c1c6140995951945d14b58f0f92f08281742dc1.tar.bz2
Tests: exit with runner result.0.4
Diffstat (limited to '')
-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)