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>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index e83c346..045bfe4 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -608,7 +608,7 @@
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)