<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>10238</bug_id>
          
          <creation_ts>2016-09-07 00:45:37 +0000</creation_ts>
          <short_desc>new runqemu fails when you change the DEPLOY_IMAGE_DIR variable for the test</short_desc>
          <delta_ts>2016-09-09 12:48:12 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>Scripts and Tools</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="brian avery">brian.avery</reporter>
          <assigned_to name="Joshua Lock">joshuagloe</assigned_to>
          <cc>joshuagloe</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>ross.burton</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65855</commentid>
    <comment_count>0</comment_count>
    <who name="brian avery">brian.avery</who>
    <bug_when>2016-09-07 00:45:37 +0000</bug_when>
    <thetext>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 += &quot;testimage&quot; 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=&quot;/cow&quot;
$ 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 &apos;runqemu help&apos; on how to use it</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65921</commentid>
    <comment_count>1</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-08 13:33:59 +0000</bug_when>
    <thetext>Confirmed. Even with the fixes for 10211[1] and 10240[2] I can reproduce this issue.

We&apos;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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65925</commentid>
    <comment_count>2</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-08 14:35:36 +0000</bug_when>
    <thetext>I&apos;ve confirmed that this is a regression compared to the shell runqemu.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65954</commentid>
    <comment_count>3</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-08 20:50:57 +0000</bug_when>
    <thetext>http://lists.openembedded.org/pipermail/openembedded-core/2016-September/126346.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65989</commentid>
    <comment_count>4</comment_count>
    <who name="Joshua Lock">joshuagloe</who>
    <bug_when>2016-09-09 12:48:12 +0000</bug_when>
    <thetext>Fixed in OE-Core/Poky master</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>