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:
Alberto Escolar Piedras 2018-01-15 16:01:38 +01:00 committed by Anas Nashif
parent f88f57b5c2
commit 43bae63e88

View file

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