From a67e6ea14c0a4e2b0e976acc57166c827befe4f0 Mon Sep 17 00:00:00 2001 From: jvoisin Date: Sun, 2 Feb 2014 21:40:10 +0000 Subject: The testsuite now returns 1 on failure This address https://labs.riseup.net/code/issues/6617 --- test/test.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'test/test.py') 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 @@ import shutil import os import glob +import sys import tempfile import unittest @@ -76,4 +77,5 @@ if __name__ == '__main__': SUITE.addTests(clitest.get_tests()) SUITE.addTests(libtest.get_tests()) - unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE) + ret = unittest.TextTestRunner(verbosity=VERBOSITY).run(SUITE).wasSuccessful() + sys.exit(ret == False) -- cgit v1.3