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:
Anas Nashif 2019-10-18 17:20:44 -04:00
commit f72d1904f5

View file

@ -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)