Commit b64a9c8d authored by Julien Muchembled's avatar Julien Muchembled

runUnitTest: use appropriate API to figure out if result was a success or not

parent ddcb5001
...@@ -764,7 +764,7 @@ def main(argument_list=None): ...@@ -764,7 +764,7 @@ def main(argument_list=None):
debug=debug, debug=debug,
run_only=run_only, run_only=run_only,
) )
return result and len(result.failures) + len(result.errors) and 1 or 0 return result and not result.wasSuccessful()
if __name__ == '__main__': if __name__ == '__main__':
# Force stdout to be totally unbuffered. # Force stdout to be totally unbuffered.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment