| Summary: | testimage does not log qemu errors to main console; only says do_testimage: runqemu exited with code 1 | ||
|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Tim Orling <tim.orling> |
| Component: | Scripts and Tools | Assignee: | Tim Orling <tim.orling> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | Medium+ | CC: | bluelightning, randy.macleod, richard.purdie, ross.burton |
| Version: | 3.1 | ||
| Target Milestone: | 3.1 M4 | ||
| Hardware: | x86 | ||
| OS: | Multiple | ||
| Whiteboard: | |||
| OS type for building Yocto: | --- | Type of Regression: | --- |
| Verified: | Documentation change: | Don't know | |
|
Description
Tim Orling
2019-12-05 03:32:05 UTC
To reproduce this, simply don't run runqemu-gen-tapdevs on a system where sudo still requires a password and then run $ bitbake -c testimage core-image-foo In other words, on a system where you have not done anything to properly enable testimage, try to run the testimage task. Result: "exit code 1". On the same system, in the same condition, run $ runqemu core-image-foo and you will get information letting you know that TAP devices have not been setup properly and you have a hint of where to go next. Confirmed, this is pretty awful. I also notice that a bunch of the "hostdump" logs are "xyz: command not found", presumably because they are invoking commands that are not accessible via HOSTTOOLS. The change from print() to logger resolves the initial issue. There remains the assumption of tools installed on host and target for the respective dump functions. Opening a new bug for that. Added testimage_dump_target() bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13871 Added testimage_dump_host() bug: https://bugzilla.yoctoproject.org/show_bug.cgi?id=13872 |