]> git.ipfire.org Git - thirdparty/dnspython.git/commitdiff
exit with non-zero status on failure
authorBob Halley <halley@dnspython.org>
Sat, 9 Jan 2016 00:08:31 +0000 (16:08 -0800)
committerBob Halley <halley@dnspython.org>
Sat, 9 Jan 2016 00:08:31 +0000 (16:08 -0800)
tests/utest.py

index 32c1d753787530d5adeeb868d1be9dd40134f3a1..3a217a160cd80d539ddf34ac9403b5e158337161 100644 (file)
@@ -5,4 +5,5 @@ import unittest
 if __name__ == '__main__':
     sys.path.insert(0, os.path.realpath('..'))
     suites = unittest.defaultTestLoader.discover('.')
-    unittest.TextTestRunner(verbosity=2).run(suites)
+    if (not unittest.TextTestRunner(verbosity=2).run(suites).wasSuccessful()):
+        sys.exit(1)