From f72d1904f556786cba7ecba306704bd301db7089 Mon Sep 17 00:00:00 2001 From: Anas Nashif Date: Fri, 18 Oct 2019 17:20:44 -0400 Subject: [PATCH] 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 --- scripts/sanitycheck | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/sanitycheck b/scripts/sanitycheck index e83c346f421..045bfe435e5 100755 --- a/scripts/sanitycheck +++ b/scripts/sanitycheck @@ -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)