Commit 3e513f34 authored by Romain Courteaud's avatar Romain Courteaud

erp5_test_result: consider line without test as UNKNOWN result

parent 784c1fe5
......@@ -63,7 +63,7 @@ elif test_result.getPortalType() == 'Test Result Line':
errors = kw.get('error_count', 0)
failures = kw.get('failure_count', 0)
skips = kw.get('skip_count', 0)
if all_tests is None:
if (all_tests is None) or (all_tests == 0):
status = 'UNKNOWN'
all_tests = 0
elif errors or failures and unexpected(test_result.getParentValue()):
......
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