diff options
| author | Bob Halley <halley@play-bow.org> | 2016-01-08 16:23:34 -0800 |
|---|---|---|
| committer | Bob Halley <halley@play-bow.org> | 2016-01-08 16:23:34 -0800 |
| commit | b5b9b3b178f5e18bc0a9715c2e1dcde47fb0c62f (patch) | |
| tree | 2a16aa2437871458785038eff4fa39778e830ac4 | |
| parent | e164e9b0f41af84ee3c9fa89aecdc82cc232cd53 (diff) | |
| download | dnspython-b5b9b3b178f5e18bc0a9715c2e1dcde47fb0c62f.tar.gz | |
exit with nonzero status if tests fail
| -rw-r--r-- | tests/utest.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/utest.py b/tests/utest.py index 32c1d75..f3bfaa9 100644 --- a/tests/utest.py +++ b/tests/utest.py @@ -5,4 +5,6 @@ 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) + |
