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>
diff --git a/scripts/sanitycheck b/scripts/sanitycheck
index 9ae804a..dc32f69 100755
--- a/scripts/sanitycheck
+++ b/scripts/sanitycheck
@@ -851,7 +851,14 @@
 
 
                 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: