sanitycheck: exit thread executor on exceptions

When something goes wrong, exit thread execution pool and report and
error.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2019-11-05 06:01:49 -08:00
commit 4f04386e61

View file

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