<?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>8118</bug_id>
          
          <creation_ts>2015-08-06 18:18:25 +0000</creation_ts>
          <short_desc>Add support for retrieve target system status when test fails</short_desc>
          <delta_ts>2015-10-05 13:21:02 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Runtime Testing</product>
          <component>general</component>
          <version>1.9</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.9 M3</target_milestone>
          
          <blocked>8176</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Aníbal Limón">anibal.limon</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>bogdanx.a.voiculescu</cc>
    
    <cc>daniel.alexandrux.istrate</cc>
    
    <cc>mariano.lopez</cc>
          
          <qa_contact name="Daniel Istrate">daniel.alexandrux.istrate</qa_contact>
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>52882</commentid>
    <comment_count>0</comment_count>
    <who name="Aníbal Limón">anibal.limon</who>
    <bug_when>2015-08-06 18:18:25 +0000</bug_when>
    <thetext>When a runtime test fails will be good to have information about the status of the system.

- Processes running.
- Memory information.
- dmesg.
- Network information, netstat.
- X log.

One way to do that is to send commands over serial port to the qemu target running.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53004</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-11 21:42:57 +0000</bug_when>
    <thetext>Currently the console for the QemuRunner class is only used to check if the target booted, there is need to implement a method to allow communication on the target using the console.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53090</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-13 15:19:56 +0000</bug_when>
    <thetext>Sent some patches for review, currently the commands and dump dir location are harcoded in oeRuntimeTest, however this is not the best approach. I will send another series of patches to have the ability to customize these on the testimage class</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53167</commentid>
    <comment_count>3</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-17 21:35:42 +0000</bug_when>
    <thetext>Sent a patch that fixed some issues in the last batch of patches</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53358</commentid>
    <comment_count>4</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-08-24 14:36:58 +0000</bug_when>
    <thetext>Hi,

These patches break functionality for running testimage on real hardware (#8203)

Thanks,
--Daniel</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53388</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-25 16:09:18 +0000</bug_when>
    <thetext>Sent patches that also fix the regression issue with real hardware.

http://lists.openembedded.org/pipermail/openembedded-core/2015-August/109376.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53570</commentid>
    <comment_count>6</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-31 14:25:03 +0000</bug_when>
    <thetext>Patches to fix the regression to test on real hardware were accepted on now are in master in commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=277571bbd0a7864e996fad5acd3a10d31c84fdbd</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53571</commentid>
    <comment_count>7</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-31 14:27:36 +0000</bug_when>
    <thetext>Sent patch to make compatible run exported test with HostDumper.

http://lists.openembedded.org/pipermail/openembedded-core/2015-August/109714.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53786</commentid>
    <comment_count>8</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-09-07 13:47:34 +0000</bug_when>
    <thetext>These are the changes that were introduced when solved this bug:

There are new classes in oeqa/utils named HostDumper and TargetDumper. These would run commands on the host or target and save the output.

It was added the capability to run commands in the qemu target using the serial console.

When qemu ends unexpectedly it will get the dumps from the host running qemu.

There are 3 new bitbake vars that would define where and what commands to dump, these vars are:
    - TESTIMAGE_DUMP_DIR
    - testimage_dump_target
    - testimage_dump_host

It was solved the break with the real hardware.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>53787</commentid>
    <comment_count>9</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-09-07 13:47:43 +0000</bug_when>
    <thetext>This bug has been solved with the following commits:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=78e1c4f146e8536513ff3301f054e66c2fea00a4

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a5bfa110f6bb24523bf78718552cb092d507bab6

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c0c463be28b731606f727ba85617c73796c05eab

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=51d8e8fb370ae5eb9ebaff722c181a693a7f4ca1

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=9c72c1a5aa0b49d3895bbefee7a264adfcc6f4ca

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=857da0884a645517e69407a8eafd0c33111ab8a3

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=48373be8303b620fbddda3298e4eb0c8d188f7dc

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=85fd1a7a121daffc3c5c530930f832ecc61ef83d

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=097f36f636a624a9cf3f04780000671d7bc3df50

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=c78ba0d4f072e1606e9934823138d9302cc49ab8

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=277571bbd0a7864e996fad5acd3a10d31c84fdbd

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=53ab41a5f6d20e911362a9261ae528452bb71bbd

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a2b0d0423555e9b386f1a7bb620837c23be3854e</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54960</commentid>
    <comment_count>10</comment_count>
    <who name="Daniel Istrate">daniel.alexandrux.istrate</who>
    <bug_when>2015-10-05 13:21:02 +0000</bug_when>
    <thetext>Verified on master: eac61f37e36099f74485dab398b57f3812826d17

Steps to verify:
1. Add to local.conf:
TESTIMAGE_DUMP_DIR = &quot;test_folder&quot;
testimage_dump_host = &quot;10.237.112.240&quot;
testimage_dump_target = &quot;192.168.7.2&quot;

INHERIT += &quot;testimage&quot;
TEST_SUITES = &quot;auto&quot;

2. bitbake core-image-sato-sdk -c testimage

3. When tests fail &quot;test_folder&quot; will hold information about
 host &amp; target such as ps, df, dmesg,netstat, top etc</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>