<?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>13872</bug_id>
          
          <creation_ts>2020-04-15 12:29:37 +0000</creation_ts>
          <short_desc>testimage assumes tools are installed on host for testimage_dump_host() function</short_desc>
          <delta_ts>2024-01-18 16:10:49 +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>3.1</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard>NEWCOMER</status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>4.3</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Tim Orling">tim.orling</reporter>
          <assigned_to name="Thomas Roos">thomas</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>ross.burton</cc>
    
    <cc>thomas</cc>
          
          
          <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>87013</commentid>
    <comment_count>0</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2020-04-15 12:29:37 +0000</bug_when>
    <thetext>Additional task from original Bug #13681.

The testimage.bbclass assumes multiple tools will be installed on host for the testimage_dump_host() function [1].

testimage_dump_host () {
    top -bn1
    iostat -x -z -N -d -p ALL 20 2
    ps -ef
    free
    df
    memstat
    dmesg
    ip -s link
    netstat -an
}

Should these tools be added to HOSTTOOLS or otherwise noted as required somewhere?
At least the function should test for the presence of the tools and report a useful error rather than just a slew of file or path not found type errors.

[1] http://git.yoctoproject.org/cgit/cgit.cgi/poky/tree/meta/classes/testimage.bbclass#n114</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87038</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-04-16 08:02:19 +0000</bug_when>
    <thetext>Delete this code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95333</commentid>
    <comment_count>2</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-04-11 20:28:44 +0000</bug_when>
    <thetext>Still in poky: commit f79046d082f3a7752e6780b2990470dcd36cbba4 (origin/master, origin/HEAD)


❯ rg testimage_dump_host
meta/classes-recipe/testexport.bbclass
65:        d.getVar(&quot;testimage_dump_host&quot;), d.getVar(&quot;TESTIMAGE_DUMP_DIR&quot;))

meta/classes-recipe/testimage.bbclass
118:testimage_dump_host () {
344:        d.getVar(&quot;testimage_dump_host&quot;),

meta/lib/oeqa/targetcontrol.py
107:        dump_host_cmds = d.getVar(&quot;testimage_dump_host&quot;)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95529</commentid>
    <comment_count>3</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-05-12 13:47:18 +0000</bug_when>
    <thetext>https://lists.openembedded.org/g/openembedded-core/message/181183</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95572</commentid>
    <comment_count>4</comment_count>
    <who name="Thomas Roos">thomas</who>
    <bug_when>2023-05-19 07:11:50 +0000</bug_when>
    <thetext>https://lists.openembedded.org/g/openembedded-core/message/181491</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97898</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-01-18 16:10:49 +0000</bug_when>
    <thetext>We have droped the testimage_dump_host() function in:
https://git.yoctoproject.org/poky/commit/?id=f82c3bd37d62a3efc49fd33efa38a7f523e6c676</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>