<?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>8212</bug_id>
          
          <creation_ts>2015-08-26 20:30:06 +0000</creation_ts>
          <short_desc>Can&apos;t run exported tests</short_desc>
          <delta_ts>2015-10-26 13:19:19 +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>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium+</priority>
          <bug_severity>critical</bug_severity>
          <target_milestone>2.0</target_milestone>
          
          <blocked>8194</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Mariano Lopez">mariano.lopez</reporter>
          <assigned_to name="Lucian Musat">georgex.l.musat</assigned_to>
          <cc>alexandru.c.georgescu</cc>
          
          <qa_contact name="Costin">costin.c.constantin</qa_contact>
          <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>53445</commentid>
    <comment_count>0</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-08-26 20:30:06 +0000</bug_when>
    <thetext>The manual mentions that it is possible to export the runtime tests and the run from any host. It&apos;s in:

http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#exporting-tests

When trying to follow the instructions I get a traceback that it can&apos;t import bb:

$ ./runexported.py testdata.json
Traceback (most recent call last):
  File &quot;./runexported.py&quot;, line 33, in &lt;module&gt;
    from oeqa.oetest import runTests
  File &quot;/home/mlopezva/repo/poky/temp2/tmp/testimage/core-image-sato/oeqa/oetest.py&quot;, line 15, in &lt;module&gt;
    import bb
ImportError: No module named bb


bb module was introduced to oetest.py in commit 	058e75d60e98841c8532a05006ae46725e3cdfd1. But even returning to this commit runexported.py throw an exception

http://www.yoctoproject.org/docs/1.8/mega-manual/mega-manual.html#exporting-tests

$ ./runexported.py testdata.json
SSH log file: /home/mlopezva/repo/poky/temp/tmp/testimage/core-image-sato/ssh_target_log.20150826075658
Traceback (most recent call last):
  File &quot;./runexported.py&quot;, line 135, in &lt;module&gt;
    ret = main()
  File &quot;./runexported.py&quot;, line 129, in main
    runTests(tc)
  File &quot;/home/mlopezva/repo/poky/temp/tmp/testimage/core-image-sato/oeqa/oetest.py&quot;, line 35, in runTests
    suite = loadTests(tc, type)
  File &quot;/home/mlopezva/repo/poky/temp/tmp/testimage/core-image-sato/oeqa/oetest.py&quot;, line 29, in loadTests
    suite = testloader.loadTestsFromNames(tc.testslist)
  File &quot;/usr/lib64/python2.7/unittest/loader.py&quot;, line 130, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
AttributeError: &apos;module&apos; object has no attribute &apos;buildcvs&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54471</commentid>
    <comment_count>1</comment_count>
    <who name="Mariano Lopez">mariano.lopez</who>
    <bug_when>2015-09-22 15:31:33 +0000</bug_when>
    <thetext>The issue here is all the bb dependencies found in utils and runtime folders. These folders shouldn&apos;t use bb lib.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>54954</commentid>
    <comment_count>2</comment_count>
    <who name="Lucian Musat">georgex.l.musat</who>
    <bug_when>2015-10-05 08:33:05 +0000</bug_when>
    <thetext>Resolved in commit f1e7fb0856b2f1d403784d11332a5df9bccc74f5.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>55738</commentid>
    <comment_count>3</comment_count>
    <who name="Costin">costin.c.constantin</who>
    <bug_when>2015-10-26 13:19:19 +0000</bug_when>
    <thetext>Marking this as verified. 
./runexported works fine on master commit:
505a82673ac2487df5ea343a6422c2fc47018831
on an Ubuntu machine.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>