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 <Eugeniy.Paltsev@synopsys.com>
Signed-off-by: Evgeniy Paltsev <PaltsevEvgeniy@gmail.com>
This commit is contained in:
Evgeniy Paltsev 2023-03-20 18:55:48 +00:00 committed by Carles Cufí
commit f2d04ab189

View file

@ -630,7 +630,7 @@ class DeviceHandler(Handler):
if harness.state == "failed": if harness.state == "failed":
self.instance.reason = "Failed" self.instance.reason = "Failed"
elif not flash_error: elif not flash_error:
self.instance.status = "error" self.instance.status = "failed"
self.instance.reason = "Timeout" self.instance.reason = "Timeout"
if self.instance.status == "error": if self.instance.status == "error":