test-install : fixed error in logic exposed by tests

This commit is contained in:
Massimiliano Culpo 2016-04-27 19:28:13 +02:00
parent 4846ab70d8
commit b1ba869b37

View File

@ -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)