summaryrefslogtreecommitdiff
path: root/qpid/python/qpid-python-test
diff options
context:
space:
mode:
authorRafael H. Schloming <rhs@apache.org>2009-06-02 15:22:34 +0000
committerRafael H. Schloming <rhs@apache.org>2009-06-02 15:22:34 +0000
commit1274bc5a6c6cc55604fc248417ddb66b1e29986c (patch)
treef9c857cda3e735b5cbfaee0d03b2c0a98bc5af88 /qpid/python/qpid-python-test
parent007d1f6de841dde064df0f0eac9f35f88a540ccb (diff)
downloadqpid-python-1274bc5a6c6cc55604fc248417ddb66b1e29986c.tar.gz
removed turnary if
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk@781058 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/python/qpid-python-test')
-rwxr-xr-xqpid/python/qpid-python-test6
1 files changed, 5 insertions, 1 deletions
diff --git a/qpid/python/qpid-python-test b/qpid/python/qpid-python-test
index 1e342386cd..edfce21fec 100755
--- a/qpid/python/qpid-python-test
+++ b/qpid/python/qpid-python-test
@@ -447,7 +447,11 @@ for t in filtered:
failed += 1
if not list_only:
+ if failed:
+ outcome = "fail"
+ else:
+ outcome = "pass"
print colorize("Totals:", 1), \
colorize_word("total", "%s tests" % len(filtered)) + ",", \
colorize_word("pass", "%s passed" % passed) + ",", \
- colorize_word("fail" if failed else "pass", "%s failed" % failed)
+ colorize_word(outcome, "%s failed" % failed)