Skip to content

Commit

Permalink
sanitycheck: exit thread executor on exceptions
Browse files Browse the repository at this point in the history
When something goes wrong, exit thread execution pool and report and
error.

Signed-off-by: Anas Nashif <[email protected]>
  • Loading branch information
nashif committed Nov 5, 2019
1 parent 89c8304 commit 4f04386
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -2760,7 +2760,8 @@ class TestSuite:
try:
data = future.result()
except Exception as exc:
print('%r generated an exception: %s' % (test, exc))
sys.exit('%r generated an exception: %s' % (test, exc))

else:
if data:
verbose(data)
Expand Down

0 comments on commit 4f04386

Please sign in to comment.