<?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>10162</bug_id>
          
          <creation_ts>2016-08-18 17:31:32 +0000</creation_ts>
          <short_desc>oe-selftest: When using xml reporting runqemu fails</short_desc>
          <delta_ts>2017-12-06 17:09:36 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=10826</see_also>
    
    <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=10866</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.2 M3</target_milestone>
          
          <blocked>9954</blocked>
    
    <blocked>9997</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Unknown (Hard to categorize)</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>65317</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-08-18 17:31:32 +0000</bug_when>
    <thetext>The module unittest-xml-reporting overwrites sys.stdout with an StringIO() object and when cooker is called it throws a traceback:

======================================================================
ERROR [18.025s]: test_testexport_basic (oeqa.selftest.runtime-test.TestExport)
----------------------------------------------------------------------
Traceback (most recent call last):
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/selftest/runtime-test.py&quot;, line 34, in test_testexport_basic
    with runqemu(&apos;core-image-minimal&apos;) as qemu:
  File &quot;/usr/lib64/python3.4/contextlib.py&quot;, line 59, in __enter__
    return next(self.gen)
  File &quot;/home/mlopezva/repo/poky/meta/lib/oeqa/utils/commands.py&quot;, line 217, in runqemu
    tinfoil = bb.tinfoil.Tinfoil()
  File &quot;/home/mlopezva/repo/poky/bitbake/lib/bb/tinfoil.py&quot;, line 54, in __init__
    self.cooker = BBCooker(self.config, features)
  File &quot;/home/mlopezva/repo/poky/bitbake/lib/bb/cooker.py&quot;, line 233, in __init__
    fd = sys.stdout.fileno()
io.UnsupportedOperation: fileno</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65489</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-08-24 16:02:16 +0000</bug_when>
    <thetext>Sent patch to mailing list:

http://lists.openembedded.org/pipermail/bitbake-devel/2016-August/007943.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65514</commentid>
    <comment_count>2</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-08-25 17:09:02 +0000</bug_when>
    <thetext>This is M+, this has to be ready for M3. Patch also sent to the ML</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65871</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-09-07 14:15:45 +0000</bug_when>
    <thetext>This has been solved with commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=355e4ec0b6ac20d5c66618e6df1db6064baceb57</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>