summaryrefslogtreecommitdiff
path: root/test/test.py
diff options
context:
space:
mode:
authorjvoisin2014-02-02 21:40:10 +0000
committerjvoisin2014-02-03 01:00:23 +0000
commita67e6ea14c0a4e2b0e976acc57166c827befe4f0 (patch)
tree10ec06a1f315c4d1b16b6f3f8ae1d0664a937678 /test/test.py
parent7f308642294d9b68cda8eba9c2ffb5f14f3843ff (diff)
The testsuite now returns 1 on failure
This address https://labs.riseup.net/code/issues/6617
Diffstat (limited to '')
-rw-r--r--test/test.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.py b/test/test.py
index 49a657b..ed68e13 100644
--- a/test/test.py
+++ b/test/test.py
@@ -12,6 +12,7 @@
12import shutil 12import shutil
13import os 13import os
14import glob 14import glob
15import sys
15import tempfile 16import tempfile
16import unittest 17import unittest
17 18
@@ -76,4 +77,5 @@ if __name__ == '__main__':
76 SUITE.addTests(clitest.get_tests()) 77 SUITE.addTests(clitest.get_tests())
77 SUITE.addTests(libtest.get_tests()) 78 SUITE.addTests(libtest.get_tests())
78 79
79 unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE) 80 ret = unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE).wasSuccessful()
81 sys.exit(ret == False)