sanitycheck: properly identify when QEMU crashes out

This had been erroneously reported as a build error.

Issue: ZEP-1460
Change-Id: Idddaf833011beb1165bd766dd115c021c5b90cdf
Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
Andrew Boie 2017-01-10 13:32:40 -08:00 committed by Anas Nashif
commit 822b08711f

View file

@ -851,7 +851,14 @@ class MakeGenerator:
if error:
goal.fail("build_error")
# Sometimes QEMU will run an image and then crash out, which
# will cause the 'make qemu' invocation to exit with
# nonzero status.
# Need to distinguish this case from a compilation failure.
if goal.qemu:
goal.fail("qemu_crash")
else:
goal.fail("build_error")
else:
if state == "finished":
if goal.qemu: