<?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>8510</bug_id>
          
          <creation_ts>2015-10-13 20:46:47 +0000</creation_ts>
          <short_desc>TargetDumper.dump_target() from dump.py sometimes puts output in the wrong file</short_desc>
          <delta_ts>2015-11-17 14:59:31 +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>2.0</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.1</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Randy Witt">randy.e.witt</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>benjamin.esquivel</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>55276</commentid>
    <comment_count>0</comment_count>
    <who name="Randy Witt">randy.e.witt</who>
    <bug_when>2015-10-13 20:46:47 +0000</bug_when>
    <thetext>Sometimes run_serial() will timeout before the data requested by the command in dump_target() has returned. That will make the current file empty(because it assumes the data is there), but then it proceeds to the next file which then gets the output from the previous command. Each file from then on will have the output from the previous command.

This makes it fairly hard to use the debug programatically or even manually since you have to inspect each file to figure out what the data actually is.

This could most likely be fixed by running a command such as &quot;echo &apos;Running command foo&apos;&quot; as a heading before each command, and putting all the data in the same file. Or by then postprocessing based on the heading and putting the data into separate files based on the headings.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56239</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-05 16:23:14 +0000</bug_when>
    <thetext>The problem is that there is a timeout while reading the socket. This timeout could be omitted because we are searching for the prompt as the last thing the socket will get</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56246</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-05 17:26:59 +0000</bug_when>
    <thetext>Sent patch for review</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>56532</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-11-17 14:59:24 +0000</bug_when>
    <thetext>Patch is integrated in master:

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

    </bug>

</bugzilla>