<?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>10317</bug_id>
          
          <creation_ts>2016-09-22 01:00:31 +0000</creation_ts>
          <short_desc>oeqa tests are incompatible with python&apos;s unittest runner</short_desc>
          <delta_ts>2017-03-28 21:48:55 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>10</classification_id>
          <classification>QA/Testing</classification>
          <product>Build Testing</product>
          <component>general</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>2.4 M3</target_milestone>
          
          <blocked>10230</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Benjamin Esquivel">benjamin.esquivel</reporter>
          <assigned_to name="Mariano Lopez">mariano.lopez</assigned_to>
          <cc>anibal.limon</cc>
    
    <cc>leonardo.sandoval.gonzalez</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>66450</commentid>
    <comment_count>0</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-09-22 01:00:31 +0000</bug_when>
    <thetext>oeqa tests are based in unittest yet they are incompatible for running via unittest&apos;s runner.

The purpose of this bug is to investigate if the base test class can be adapted for running both via plain unittest and oe-selftest.

Future enabling of other runners, i.e. pytest, benefit from this compatibility check.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69293</commentid>
    <comment_count>1</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2016-12-21 21:35:49 +0000</bug_when>
    <thetext>M1 missed. Moved to M2.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71836</commentid>
    <comment_count>2</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2017-03-28 21:48:55 +0000</bug_when>
    <thetext>After the migration of runtime, sdk, and esdk frameworks we found that in order to use decorator as the way we are doing right now (execute decorator code when discovering the tests) it is not possible to use vanilla unittest.

Also, the cases needs to get custom arguments in their init method, making this more complicated.

Now is possible to discover test using vanilla unittest but it is not possible to execute them.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>