Skip to content

Commit 12d21df

Browse files
m-torhancfriedt
authored andcommitted
twister: scripts: add missing failure reason in Robot test runner
Add failure reason with return code when Renode process fails Signed-off-by: Maciej Torhan <[email protected]>
1 parent 1f35b83 commit 12d21df

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/pylib/twister/twisterlib/harness.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ def run_robot_test(self, command, handler):
243243
f"Robot test failure: {handler.sourcedir} for {self.instance.platform.name}"
244244
)
245245
self.instance.status = TwisterStatus.FAIL
246+
self.instance.reason = f"Exited with {renode_test_proc.returncode}"
246247
self.instance.testcases[0].status = TwisterStatus.FAIL
247248

248249
if out:

0 commit comments

Comments
 (0)