<?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>15248</bug_id>
          
          <creation_ts>2023-10-20 04:07:38 +0000</creation_ts>
          <short_desc>Consider migrating oe-selftest to pytest</short_desc>
          <delta_ts>2025-10-30 15:17:48 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Functional (self) Testing</product>
          <component>oe-selftest</component>
          <version>5.99</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Chris Laplante">chris.laplante</reporter>
          <assigned_to name="Unassigned">unassigned</assigned_to>
          <cc>randy.macleod</cc>
    
    <cc>tgamblin</cc>
    
    <cc>tim.orling</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>96752</commentid>
    <comment_count>0</comment_count>
    <who name="Chris Laplante">chris.laplante</who>
    <bug_when>2023-10-20 04:07:38 +0000</bug_when>
    <thetext>As a relative outsider looking in, it seems to me that oe-selftest has grown beyond the capabilities of unittest. I think we could benefit from some of the more sophisticated features of a framework like pytest.

Some highlights worth investigating:
* Fixtures: https://pytest.org/en/7.4.x/how-to/fixtures.html
* Live logging: https://pytest.org/en/7.4.x/how-to/logging.html#live-logs
* Parameterization: https://pytest.org/en/7.4.x/how-to/parametrize.html#basic-pytest-generate-tests-example

However, I don&apos;t know if it is realistically possible to make the migration in any reasonable amount of time...</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97001</commentid>
    <comment_count>1</comment_count>
    <who name="Randy MacLeod">randy.macleod</who>
    <bug_when>2023-10-26 14:35:17 +0000</bug_when>
    <thetext>Does pytest support concurrent execution?  There are several plugins apparently so we&apos;d need to pick on.
Getting someone time to work on it is a challenge.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>97003</commentid>
    <comment_count>2</comment_count>
    <who name="Tim Orling">tim.orling</who>
    <bug_when>2023-10-26 14:37:45 +0000</bug_when>
    <thetext>https://pypi.org/project/pytest-xdist/ is probably the best known of the concurrent execution plugins.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>