diff options
| author | Bob Halley <halley@dnspython.org> | 2016-01-08 16:08:31 -0800 |
|---|---|---|
| committer | Bob Halley <halley@dnspython.org> | 2016-01-08 16:08:31 -0800 |
| commit | b08e05c22e9d4ffcff7fba4058acee9e375574fb (patch) | |
| tree | b41497008f4d629a142385f944dbbb748b53a553 /tests/utest.py | |
| parent | bafafc8fd752281d5ab55f1ca5d67074bcca90af (diff) | |
| download | dnspython-b08e05c22e9d4ffcff7fba4058acee9e375574fb.tar.gz | |
exit with non-zero status on failure
Diffstat (limited to 'tests/utest.py')
| -rw-r--r-- | tests/utest.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/utest.py b/tests/utest.py index 32c1d75..3a217a1 100644 --- a/tests/utest.py +++ b/tests/utest.py @@ -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) |
