[Python-modules-commits] [parallax] 04/08: Make testsuite exit with non-zero on failure
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Sun Nov 13 21:22:26 UTC 2016
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository parallax.
commit eb95c8ea45b9f570ca6b6d2c11455b703a309f16
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Sun Nov 13 22:04:53 2016 +0100
Make testsuite exit with non-zero on failure
---
test/test_api.py | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/test_api.py b/test/test_api.py
index b291468..1f75b86 100644
--- a/test/test_api.py
+++ b/test/test_api.py
@@ -83,4 +83,6 @@ if __name__ == '__main__':
suite = unittest.TestSuite()
suite.addTest(unittest.makeSuite(CallTest, "test"))
suite.addTest(unittest.makeSuite(CopySlurpTest, "test"))
- unittest.TextTestRunner().run(suite)
+ result = unittest.TextTestRunner().run(suite)
+ if not result.wasSuccessful():
+ sys.exit(1)
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/parallax.git
More information about the Python-modules-commits
mailing list