Skip to content

Commit f2d04ab

Browse files
evgeniy-paltsevcarlescufi
authored andcommitted
twister: fix timeout status for the device handler
Currently in binary handler and qemu handler we have status `failed` in case of test timeout, but in device handler we have status `error` This not only adds inconsistency between handlers, but also prevents us from usage test retry functionality for the runs on HW. Fix timeout status by changing it to `failed` instead of `error`. Signed-off-by: Eugeniy Paltsev <[email protected]> Signed-off-by: Evgeniy Paltsev <[email protected]>
1 parent 264ccd2 commit f2d04ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/pylib/twister/twisterlib/handlers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ def handle(self):
630630
if harness.state == "failed":
631631
self.instance.reason = "Failed"
632632
elif not flash_error:
633-
self.instance.status = "error"
633+
self.instance.status = "failed"
634634
self.instance.reason = "Timeout"
635635

636636
if self.instance.status == "error":

0 commit comments

Comments
 (0)