summaryrefslogtreecommitdiff
path: root/qpid/python/qpid-python-test
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
commit2a621d7b5c6a7cedd63a718e27046ad1e8adf7ba (patch)
tree829f26f3e3b781afdccd4de57511d1878a75f4bf /qpid/python/qpid-python-test
parent25e2bb1c10ceb059491207b4c46306c52518d462 (diff)
downloadqpid-python-2a621d7b5c6a7cedd63a718e27046ad1e8adf7ba.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@1562167 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/qpid-python-test')
-rwxr-xr-xqpid/python/qpid-python-test2
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/python/qpid-python-test b/qpid/python/qpid-python-test
index 13f31fe78b..dfe6a6fc7a 100755
--- a/qpid/python/qpid-python-test
+++ b/qpid/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)