Skip to content

Commit

Permalink
twister: set verdict on tests after evaluating results
Browse files Browse the repository at this point in the history
Do not set results before we finished parsing output.

Fixes zephyrproject-rtos#32514

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif authored and jeremybettis committed Mar 18, 2021
1 parent 81dfe9a commit ce37d91
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/pylib/twister/harness.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def handle(self, line):
csv.append(v.strip())
self.recording.append(csv)

self.process_test(line)

if self.state == "passed":
self.tests[self.id] = "PASS"
else:
self.tests[self.id] = "FAIL"

self.process_test(line)

class Test(Harness):
RUN_PASSED = "PROJECT EXECUTION SUCCESSFUL"
RUN_FAILED = "PROJECT EXECUTION FAILED"
Expand Down

0 comments on commit ce37d91

Please sign in to comment.