<?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>9129</bug_id>
          
          <creation_ts>2016-02-17 18:17:21 +0000</creation_ts>
          <short_desc>Enhance Test Suite scanning and execution</short_desc>
          <delta_ts>2016-10-27 21:17:16 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Test Plans/Suite</product>
          <component>test-plans/suite</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>10230</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.3</target_milestone>
          <dependson>8410</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alex Franco">alejandro.franco</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>benjamin.esquivel</cc>
    
    <cc>corneliux.stoicescu</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Yes (doc changes required)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>59163</commentid>
    <comment_count>0</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2016-02-17 18:17:21 +0000</bug_when>
    <thetext>Derived from bug 8410

1.- The usage of &quot;auto&quot; in TEST_SUITES.
    When &quot;auto&quot; is listed in TEST_SUITES, a function ran after do_testimage scans the directories &apos;&lt;layer&gt;/lib/oeqa/runtime/&apos;, and any tests found are added to the test run list, in whatever order they are found.

2.- How tests are skipped
    Once the tests in TEST_SUITES and the ones scanned if &quot;auto&quot; was present are in the run test list, they are ran one at a time, in order of appearance. First all the ones in TEST_SUITES in the order they were added there, then the ones scanned if &quot;auto&quot; was present, in order of scan.

If any of these tests should be skipped, then those tests themselves will issue their own skip action, either using unittest.skipTest or any of the skip decorators specified in utils/decorators.py, like skipUnlessPassed. These decorators only work if the test list is ordered by dependencies, which is not the case sometimes, and results in errors.

Proposed solution:

Improving how test suites are scanned (2) in order to have an *ordered* test list should guarantee (3) works as designed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59166</commentid>
    <comment_count>1</comment_count>
    <who name="Alex Franco">alejandro.franco</who>
    <bug_when>2016-02-17 20:43:08 +0000</bug_when>
    <thetext>In short, the goal of this is making sure testimage test suite dependencies are met when testing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59167</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-02-17 20:48:20 +0000</bug_when>
    <thetext>correct, because currently the dependencies are not guaranteed to run in order.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>62457</commentid>
    <comment_count>3</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-05-25 20:46:00 +0000</bug_when>
    <thetext>Due to limited resources, moving this to 2.3</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>67677</commentid>
    <comment_count>4</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-10-27 21:17:16 +0000</bug_when>
    <thetext>This work is covered by the new implementation of oeqa, called oeqa2, so marking as duplicate.

*** This bug has been marked as a duplicate of bug 10230 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>