summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2014-01-28 19:25:36 +0000
committerAlan Conway <aconway@apache.org>2014-01-28 19:25:36 +0000
commit79f63488344f522504df67c2084a06336d9cf601 (patch)
tree5aaeb1d46c155a020f69d02d0644422970f87c42
parentf93c27eb08105d90d983048af396e0b2226b428e (diff)
downloadqpid-python-79f63488344f522504df67c2084a06336d9cf601.tar.gz
QPID-5520: qpid-python-test should not fail for skipped tests.
The qpid-python-test script has a facility for skipping tests (by raising a Skipped exception) which works fine BUT if tests are skipped the script exits with non-0 status - i.e. failure. With this commit the script exits with a 0 exit status (success) unless there are actual failures. See discussion at: http://apache-qpid-developers.2158895.n2.nabble.com/qpid-python-test-script-should-skipped-tests-be-considered-failures-td7592307.html git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1562167 13f79535-47bb-0310-9956-ffa450edef68
-rwxr-xr-xpython/qpid-python-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/qpid-python-test b/python/qpid-python-test
index 13f31fe78b..dfe6a6fc7a 100755
--- a/python/qpid-python-test
+++ b/python/qpid-python-test
@@ -633,7 +633,7 @@ if not list_only:
if xmlr:
xmlr.end()
-if failed or skipped:
+if failed:
sys.exit(1)
else:
sys.exit(0)