summaryrefslogtreecommitdiff
path: root/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
commit45a5239daf0460964b011e57c16a98c30f671901 (patch)
treeb62757506643369ca923d8869067067a886ae131 /python/qpid-python-test
parent2fb589c740a430b7b248d3fcce5c730bb2249daa (diff)
downloadqpid-python-45a5239daf0460964b011e57c16a98c30f671901.tar.gz
removed turnary if
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@781058 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'python/qpid-python-test')
-rwxr-xr-xpython/qpid-python-test6
1 files changed, 5 insertions, 1 deletions
diff --git a/python/qpid-python-test b/python/qpid-python-test
index 1e342386cd..edfce21fec 100755
--- a/python/qpid-python-test
+++ b/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)