[Python-modules-commits] [parallax] 01/03: Make testsuite exit with non-zero on failure
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Mon Nov 14 16:02:43 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 f3f7883dcb07e542e45cde44b8a808e5d67c5d31
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
Bug: https://github.com/krig/parallax/pull/2
---
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