Repository: qpid-interop-test Updated Branches: refs/heads/master e2dd1a3f9 -> b07013efe
NO-JIRA: Added exit code to tests so that calling scripts can determine success or failure Project: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/repo Commit: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/commit/b07013ef Tree: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/tree/b07013ef Diff: http://git-wip-us.apache.org/repos/asf/qpid-interop-test/diff/b07013ef Branch: refs/heads/master Commit: b07013efee722b247a462687ba9a3e6c85d28a09 Parents: e2dd1a3 Author: Kim van der Riet <[email protected]> Authored: Thu Feb 4 10:26:49 2016 -0500 Committer: Kim van der Riet <[email protected]> Committed: Thu Feb 4 10:26:49 2016 -0500 ---------------------------------------------------------------------- src/py/qpid-interop-test/jms/jms_message_tests.py | 5 ++++- src/py/qpid-interop-test/types/simple_type_tests.py | 4 +++- 2 files changed, 7 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/b07013ef/src/py/qpid-interop-test/jms/jms_message_tests.py ---------------------------------------------------------------------- diff --git a/src/py/qpid-interop-test/jms/jms_message_tests.py b/src/py/qpid-interop-test/jms/jms_message_tests.py index 3c7726e..4829e62 100755 --- a/src/py/qpid-interop-test/jms/jms_message_tests.py +++ b/src/py/qpid-interop-test/jms/jms_message_tests.py @@ -30,6 +30,7 @@ from itertools import product from json import dumps, loads from os import getenv, path from subprocess import check_output, CalledProcessError +from sys import exit from proton import symbol from test_type_map import TestTypeMap @@ -472,5 +473,7 @@ if __name__ == '__main__': TEST_SUITE.addTest(unittest.makeSuite(test_case_class)) # Finally, run all the dynamically created tests - unittest.TextTestRunner(verbosity=2).run(TEST_SUITE) + res = unittest.TextTestRunner(verbosity=2).run(TEST_SUITE) + if not res.wasSuccessful(): + exit(1) http://git-wip-us.apache.org/repos/asf/qpid-interop-test/blob/b07013ef/src/py/qpid-interop-test/types/simple_type_tests.py ---------------------------------------------------------------------- diff --git a/src/py/qpid-interop-test/types/simple_type_tests.py b/src/py/qpid-interop-test/types/simple_type_tests.py index b0ef92c..f734135 100755 --- a/src/py/qpid-interop-test/types/simple_type_tests.py +++ b/src/py/qpid-interop-test/types/simple_type_tests.py @@ -464,5 +464,7 @@ if __name__ == '__main__': TEST_SUITE.addTest(unittest.makeSuite(test_case_class)) # Finally, run all the dynamically created tests - unittest.TextTestRunner(verbosity=2).run(TEST_SUITE) + res = unittest.TextTestRunner(verbosity=2).run(TEST_SUITE) + if not res.wasSuccessful(): + exit(1) # Errors or failures present --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
