[Python-modules-commits] [python-pyld] 191/276: Exit with error code if tests do not pass.
Wolfgang Borgert
debacle at moszumanska.debian.org
Wed Oct 8 23:48:10 UTC 2014
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to branch master
in repository python-pyld.
commit 59f3a0b90a8b1f2666365dc4c651bb27e60787cc
Author: Dave Longley <dlongley at digitalbazaar.com>
Date: Tue Sep 10 15:02:33 2013 -0400
Exit with error code if tests do not pass.
---
tests/runtests.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/tests/runtests.py b/tests/runtests.py
index ccbae7b..bff80b1 100644
--- a/tests/runtests.py
+++ b/tests/runtests.py
@@ -90,6 +90,9 @@ class TestRunner(unittest.TextTestRunner):
print('Writing EARL report to: %s' % filename)
result.writeReport(filename)
+ if not result.wasSuccessful():
+ exit(1)
+
class Manifest:
def __init__(self, data, filename):
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-pyld.git
More information about the Python-modules-commits
mailing list