sanitycheck: fix error handling with host binaries
Failed unit tests were setting wrong fail string (error instead of failed) which made unit tests always pass. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
f7bfa936a1
commit
f72d1904f5
1 changed files with 1 additions and 1 deletions
|
@ -608,7 +608,7 @@ class BinaryHandler(Handler):
|
|||
if not self.terminated and self.returncode != 0:
|
||||
#When a process is killed, the default handler returns 128 + SIGTERM
|
||||
#so in that case the return code itself is not meaningful
|
||||
self.set_state("error", handler_time)
|
||||
self.set_state("failed", handler_time)
|
||||
self.instance.reason = "Handler error"
|
||||
elif harness.state:
|
||||
self.set_state(harness.state, handler_time)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue