Skip to content
Permalink
Browse files

sanitycheck: fix reporting: build vs. run

If build fails, report a build failure instead of handler error.

Fixes #15272

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information...
nashif committed Apr 11, 2019
1 parent 654ec59 commit 042d9b7d831fe58c8baa2db7cc8ea0a236c97d78
Showing with 5 additions and 2 deletions.
  1. +5 −2 scripts/sanitycheck
@@ -1362,10 +1362,13 @@ class MakeGenerator:
# will cause the 'make run' invocation to exit with
# nonzero status.
# Need to distinguish this case from a compilation failure.
if goal.handler:
if goal.make_state == "building":
goal.fail("build_error")
elif goal.handler:
goal.fail("handler_crash")
else:
goal.fail("build_error")
goal.fail("unknown_error")

else:
goal = self.goals[name]
goal.make_state = state

0 comments on commit 042d9b7

Please sign in to comment.
You can’t perform that action at this time.