diff options
Diffstat (limited to 'meta/lib/oeqa/utils/commands.py')
| -rw-r--r-- | meta/lib/oeqa/utils/commands.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py index 0d9cf23fe4..933af92dce 100644 --- a/meta/lib/oeqa/utils/commands.py +++ b/meta/lib/oeqa/utils/commands.py | |||
| @@ -333,7 +333,11 @@ def runqemu(pn, ssh=True, runqemuparams='', image_fstype=None, launch_cmd=None, | |||
| 333 | try: | 333 | try: |
| 334 | qemu.start(params=qemuparams, ssh=ssh, runqemuparams=runqemuparams, launch_cmd=launch_cmd, discard_writes=discard_writes) | 334 | qemu.start(params=qemuparams, ssh=ssh, runqemuparams=runqemuparams, launch_cmd=launch_cmd, discard_writes=discard_writes) |
| 335 | except bb.build.FuncFailed: | 335 | except bb.build.FuncFailed: |
| 336 | raise Exception('Failed to start QEMU - see the logs in %s' % logdir) | 336 | msg = 'Failed to start QEMU - see the logs in %s' % logdir |
| 337 | if os.path.exists(qemu.qemurunnerlog): | ||
| 338 | with open(qemu.qemurunnerlog, 'r') as f: | ||
| 339 | msg = msg + "Qemurunner log output from %s:\n%s" % (qemu.qemurunnerlog, f.read()) | ||
| 340 | raise Exception(msg) | ||
| 337 | 341 | ||
| 338 | yield qemu | 342 | yield qemu |
| 339 | 343 | ||
