Bug 10238 - new runqemu fails when you change the DEPLOY_IMAGE_DIR variable for the test
Summary: new runqemu fails when you change the DEPLOY_IMAGE_DIR variable for the test
Status: RESOLVED FIXED
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: Scripts and Tools (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ normal
Target Milestone: 2.2 M3
Assignee: Joshua Lock
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-09-07 00:45 UTC by brian avery
Modified: 2016-09-09 12:48 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description brian avery 2016-09-07 00:45:37 UTC
Verified building for qemuppc but suspect it will fail for all archs.
Changing the DEPLOY_DIR does NOT fail.

To reproduce:
$ bitbake core-image-sato-sdk
(make sure you have INHERIT += "testimage" in conf)
$ bitbake core-image-sato-sdk -c testimage  (this should work)  
$ mv tmp/deploy/image/qemuppc/* /cow
in local.conf set:
DEPLOY_DIR_IMAGE="/cow"
$ bitbake core-image-sato-sdk -c testimage  (this should fail)  
and the failure should say something like:
| NOTE: Output from runqemu:
| runqemu - INFO - DEPLOY_DIR_IMAGE: /cow
| runqemu - INFO - Assuming MACHINE = qemuppc
| runqemu - INFO - Running MACHINE=qemuppc bitbake -e...
| runqemu - ERROR - bitbake -e ERROR: Only one copy of bitbake should be run against a build directory
|
| runqemu - ERROR - Try 'runqemu help' on how to use it
Comment 1 Joshua Lock 2016-09-08 13:33:59 UTC
Confirmed. Even with the fixes for 10211[1] and 10240[2] I can reproduce this issue.

We'll need to figure out how this works with the current, shell based, runqemu (which also usually invokes bitbake -e to determine bitbake variables) and create an equivalent change for the Python3 based runqemu.

1. https://bugzilla.yoctoproject.org/show_bug.cgi?id=10211
2. https://bugzilla.yoctoproject.org/show_bug.cgi?id=10240
Comment 2 Joshua Lock 2016-09-08 14:35:36 UTC
I've confirmed that this is a regression compared to the shell runqemu.
Comment 4 Joshua Lock 2016-09-09 12:48:12 UTC
Fixed in OE-Core/Poky master