test-install : fixed error in logic exposed by tests
This commit is contained in:
parent
4846ab70d8
commit
b1ba869b37
@ -115,7 +115,7 @@ def __init__(self, classname, name, time=None):
|
||||
def set_result(self, result_type, message=None, error_type=None, text=None):
|
||||
self.result_type = result_type
|
||||
result = TestCase.results[self.result_type]
|
||||
if result is not None or result is not TestResult.PASSED:
|
||||
if result is not None and result is not TestResult.PASSED:
|
||||
subelement = ET.SubElement(self.element, result)
|
||||
if error_type is not None:
|
||||
subelement.set('type', error_type)
|
||||
|
Loading…
Reference in New Issue
Block a user