<?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>13735</bug_id>
          
          <creation_ts>2020-01-13 06:39:41 +0000</creation_ts>
          <short_desc>Performing Automated Runtime Testing with a custom hardware target / BeagleBone Hardware target</short_desc>
          <delta_ts>2026-04-30 15:15:48 +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>oeqa/runtime</component>
          <version>2.7.2</version>
          <rep_platform>BeagleBone</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>minor</bug_severity>
          <target_milestone>5.99</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Klaus Wiesen">kwiesen</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>akuster808</cc>
    
    <cc>kwiesen</cc>
    
    <cc>randy.macleod</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tim.orling</cc>
    
    <cc>yang.wang</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>86030</commentid>
    <comment_count>0</comment_count>
    <who name="Klaus Wiesen">kwiesen</who>
    <bug_when>2020-01-13 06:39:41 +0000</bug_when>
    <thetext>Automated runtime test on real hardware does not run. 

I tried to run it with a basic setup of yocto. I only did following changes to the local conf:

IMAGE_FSTYPES += &quot;tar.gz&quot;
INHERIT += &quot;testimage&quot;
TEST_TARGET = &quot;BeagleBoneTarget&quot;
TEST_TARGET_IP = &quot;192.168.135.2&quot;


After this I ran the bitbake command:

bitbake -c testimage core-image-minimal


The build fails with following error message:

core-image-minimal-1.0-r0 do_testimage: __init__() got an unexpected keyword argument &apos;kvm&apos;


If I rerun the build the unexpected keyword takes several values. So I tried to debug and enclose the error. I localized following lines of code that cause the error:

poky/meta/lib/oeqa/runtime/context.py - lines 116:
controller = OERuntimeTestContextExecutor.getControllerModule(target_type, target_modules_path)
target = controller(logger, target_ip, server_ip, **kwargs)

In these lines the hardwaretarget is initialized with the arguments &apos;logger&apos;,&apos;target_ip&apos;,&apos;server_ip&apos; and &apos;**kwargs&apos;. This mismatches to the init routine of the target class:

poky/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py - lines 31:
class BeagleBoneTarget(MasterImageHardwareTarget):

    dtbs = {&apos;uImage-am335x-bone.dtb&apos;: &apos;am335x-bone.dtb&apos;, &apos;uImage-am335x-boneblack.dtb&apos;: &apos;am335x-boneblack.dtb&apos;}

    @classmethod
    def get_extra_files(self):
        return list(self.dtbs.keys())

    def __init__(self, d):
        super(BeagleBoneTarget, self).__init__(d)

The init function here as well as the MasterImageHardwareTarget class&apos; init function only have the arguments &apos;self&apos; and &apos;d&apos;. I found out that the unexpected keyword argument always is the first element of &apos;**kwargs&apos;. Its order of arguments changes every build.

It&apos;s report from discussion in the mailing list. (https://lists.yoctoproject.org/g/automated-testing/topic/69600828#697)

Regards Klaus Wiesen</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86043</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2020-01-16 15:45:32 +0000</bug_when>
    <thetext>For Yang Wang.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86317</commentid>
    <comment_count>2</comment_count>
    <who name="Yang Wang">yang.wang</who>
    <bug_when>2020-02-05 20:23:50 +0000</bug_when>
    <thetext>Could you please share which poky commit was this test done?

Currently, with yocto-3.1_M2.rc1 (ca3993cc4b13d4e661228cee6fb9448adfd0a4ba) I can&apos;t even build core-image-minimal image based on beaglebone-yocto BSP.

It always shows:

ERROR: u-boot-1_2020.01-r0 do_configure: oe_runmake failed
ERROR: u-boot-1_2020.01-r0 do_configure: Execution of &apos;/buildarea1/users/ywang/poky-bbb/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/u-boot/1_2020.01-r0/temp/run.do_configure.20547&apos; failed with exit code 1:
make: Entering directory `/buildarea1/users/ywang/poky-bbb/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/u-boot/1_2020.01-r0/git&apos;
Makefile:37: *** missing separator.  Stop.
make: Leaving directory `/buildarea1/users/ywang/poky-bbb/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/u-boot/1_2020.01-r0/git&apos;
WARNING: /buildarea1/users/ywang/poky-bbb/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/u-boot/1_2020.01-r0/temp/run.do_configure.20547:1 exit 1 from &apos;exit 1&apos;

ERROR: Logfile of failure stored in: /buildarea1/users/ywang/poky-bbb/build/tmp/work/beaglebone_yocto-poky-linux-gnueabi/u-boot/1_2020.01-r0/temp/log.do_configure.20547</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86328</commentid>
    <comment_count>3</comment_count>
    <who name="Klaus Wiesen">kwiesen</who>
    <bug_when>2020-02-06 13:15:20 +0000</bug_when>
    <thetext>Hi Yang,

I tested it all with yocto 2.7.1 (commit: 38d5c8ea98cfa49825c473eba8984c12edf062be)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>87125</commentid>
    <comment_count>4</comment_count>
    <who name="Yang Wang">yang.wang</who>
    <bug_when>2020-04-30 09:29:03 +0000</bug_when>
    <thetext>This issue has been there for many years.

meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py has not been updated for a few years.

Simple workaround is to change:

TEST_TARGET = &quot;BeagleBoneTarget&quot;
to:
TEST_TARGET = &quot;simpleremote&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94555</commentid>
    <comment_count>5</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2022-12-19 21:06:09 +0000</bug_when>
    <thetext>Lower to a medium since apparently there&apos;s a work-around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97108</commentid>
    <comment_count>6</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-30 15:37:25 +0000</bug_when>
    <thetext>Build move to 5.0 -- ../Randy</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98816</commentid>
    <comment_count>7</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:13:52 +0000</bug_when>
    <thetext>Bulk move of 5.0 medium importance issues to 5.99.
Move to 5.1 if you want to actively work on an issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98856</commentid>
    <comment_count>8</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2024-04-25 01:23:10 +0000</bug_when>
    <thetext>Move to 5.99 since no one is actively working on this issue.
Move to 5.x if you start on a task, please.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105319</commentid>
    <comment_count>9</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2026-04-30 15:15:48 +0000</bug_when>
    <thetext>https://git.yoctoproject.org/meta-yocto/commit/meta-yocto-bsp/lib/oeqa/controllers/beaglebonetarget.py?id=8e578551e14e90da20701bb8a9598e2bb25f74e6</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>