Skip to content

Commit

Permalink
sanitycheck: include qemu log when failure is not a build issue
Browse files Browse the repository at this point in the history
When tests run in Qemu fail, we want to see the log from Qemu, not the
successful build log.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
  • Loading branch information
nashif committed May 1, 2017
1 parent 1084bd5 commit 119fc91
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/sanitycheck
Original file line number Diff line number Diff line change
Expand Up @@ -1605,6 +1605,9 @@ class TestSuite:
failure = ET.SubElement(eleTestcase, 'failure', type="failure", message=goal.reason)
p = ("%s/%s/%s" %(args.outdir, i.platform.name, i.test.name))
bl = os.path.join(p, "build.log")
if goal.reason != 'build_error':
bl = os.path.join(p, "qemu.log")

if os.path.exists(bl):
with open(bl, "r") as f:
log = f.read()
Expand Down

0 comments on commit 119fc91

Please sign in to comment.