Bug 10238

Summary: new runqemu fails when you change the DEPLOY_IMAGE_DIR variable for the test
Product: [Build System, Metadata & Runtime] OE-Core Reporter: brian avery <brian.avery>
Component: Scripts and ToolsAssignee: Joshua Lock <joshuagloe>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+ CC: joshuagloe, liezhi.yang, ross.burton
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

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