<?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>10806</bug_id>
          
          <creation_ts>2016-12-13 19:19:55 +0000</creation_ts>
          <short_desc>dnf tests doesn&apos;t work when exporting tests</short_desc>
          <delta_ts>2017-07-17 12:52:52 +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>general</component>
          <version>2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>OBSOLETE</resolution>
          
          <see_also>https://bugzilla.yoctoproject.org/show_bug.cgi?id=9675</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>2.4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</assigned_to>
          <cc>alex.kanavin</cc>
    
    <cc>leonardo.sandoval.gonzalez</cc>
    
    <cc>sgw</cc>
    
    <cc>stephano</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>Regression (Used to work)</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>69092</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-12-13 19:19:55 +0000</bug_when>
    <thetext>smart test in its setup updates the rpm index using the build environment. When exporting the tests this is not available and there is a traceback when loading the tests. This happens because the smart test module imports bb and oe, not available in exported tests.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69093</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2016-12-13 19:21:03 +0000</bug_when>
    <thetext>With dnf planned for 2.3 release, I don&apos;t know if is worth the time to fix this test.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69108</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Esquivel">benjamin.esquivel</who>
    <bug_when>2016-12-13 21:47:20 +0000</bug_when>
    <thetext>linking to the dnf replacing bug</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69136</commentid>
    <comment_count>3</comment_count>
    <who name="Stephano Cetola">stephano</who>
    <bug_when>2016-12-14 19:16:11 +0000</bug_when>
    <thetext>The difficult part here is oe.utils.multiprocess_exec, which would have to be reproduced somewhere outside the context of &quot;oe&quot; and &quot;bb&quot;. The indexing commands are called with this function so that the tests run quicker.

Paul mentioned that we could skip multiprocess if INHERIT contains &quot;testexport&quot;. There&apos;s no explicit need to use multiprocess in this context. The rest of the calls to &quot;bb&quot; and &quot;oe&quot; could be abstracted out to oeRuntimeTest.tc with some work.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>70426</commentid>
    <comment_count>4</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-02-03 20:07:15 +0000</bug_when>
    <thetext>I rewrote smart tests for dnf, so if you explain to me what &apos;exporting the tests&apos; means and how to do it, I can check if it&apos;s still a valid problem.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71834</commentid>
    <comment_count>5</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2017-03-28 21:37:01 +0000</bug_when>
    <thetext>Exporting tests is a functionality of the runtime framework, the idea is to put all the libraries and test in a directory and you can copy this folder to another host and execute the test; it is implemented in testexport bbclass.

testimage and testexport execute the same tests. So, the problem here is that in dnf tests we setup a local repository in the host running the test based paths (WORKDIR) that won&apos;t be necessarily available in a host without build environment.

Thinking about this a way to achieve this is avoid the setup of the repository in the test itself and do it in the testimage class. And in testexport you would need to specify the url of the repository server.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74871</commentid>
    <comment_count>6</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-07 17:04:17 +0000</bug_when>
    <thetext>Alex, should we mark this as resolved/obsolete or it is still valid?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75060</commentid>
    <comment_count>7</comment_count>
    <who name="Alexander Kanavin">alex.kanavin</who>
    <bug_when>2017-07-17 12:15:13 +0000</bug_when>
    <thetext>To be honest I have no idea. Can you provide a clear set of steps to reproduce this?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>75063</commentid>
    <comment_count>8</comment_count>
    <who name="Leonardo Sandoval Gonzalez">leonardo.sandoval.gonzalez</who>
    <bug_when>2017-07-17 12:52:52 +0000</bug_when>
    <thetext>based on comment  2 and comment 7, resolving as obsolete.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>