sanitycheck: Allow pre/postfixes in tests stdout
When checking if a testcase passed or failed, allow there to be prefixes or postfixes in the line, around PROJECT EXECUTION SUCCESSFUL/FAILED Signed-off-by: Alberto Escolar Piedras <alpi@oticon.com>
This commit is contained in:
parent
f88f57b5c2
commit
43bae63e88
|
@ -358,11 +358,11 @@ class NativeHandler(Handler):
|
|||
with open(self.run_log, "r") as rl:
|
||||
for line in rl.readlines():
|
||||
line = line.strip()
|
||||
if line == self.RUN_PASSED:
|
||||
if self.RUN_PASSED in line:
|
||||
out_state = "passed"
|
||||
break
|
||||
|
||||
if line == self.RUN_FAILED:
|
||||
if self.RUN_FAILED in line:
|
||||
out_state = "failed"
|
||||
break
|
||||
|
||||
|
|
Loading…
Reference in a new issue