This is an automated email from the git hooks/post-receive script.
rharwood pushed a commit to branch master
in repository gssproxy.
commit 3fda427ee03bba869846835cd25f2f6b8a4a7647
Author: Simo Sorce <simo(a)redhat.com>
Date: Fri Jan 13 15:49:18 2017 -0500
Fix print_return logic
Signed-off-by: Simo Sorce <simo(a)redhat.com>
Reviewed-by: Robbie Harwood <rharwood(a)redhat.com>
---
proxy/tests/testlib.py | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/proxy/tests/testlib.py b/proxy/tests/testlib.py
index 66c5672..84accb1 100755
--- a/proxy/tests/testlib.py
+++ b/proxy/tests/testlib.py
@@ -49,11 +49,12 @@ def print_warning(key, text, io=sys.stderr):
print_keyed("other", key, text, io)
def print_return(ret, name, expected_failure):
- if ret != 0 and not expected_failure:
- print_failure("SUCCESS" if ret == 0 else "FAILED",
+ if ((ret == 0 and expected_failure == False) or
+ (ret != 0 and expected_failure == True)):
+ print_success("SUCCESS" if ret == 0 else "FAILED",
"%s test returned %s" % (name, str(ret)))
else:
- print_success("SUCCESS" if ret == 0 else "FAILED",
+ print_failure("SUCCESS" if ret == 0 else "FAILED",
"%s test returned %s" % (name, str(ret)))
WRAP_HOSTNAME = "kdc.gssproxy.dev"
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.