<?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>12079</bug_id>
          
          <creation_ts>2017-09-13 16:09:48 +0000</creation_ts>
          <short_desc>[Morty][Test Case 1602] TCTEMP_2.3_AUTO_oeselftest_eSDK_install_libraries_headers</short_desc>
          <delta_ts>2017-09-13 19:44:24 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>6</classification_id>
          <classification>Yocto Project Subprojects</classification>
          <product>eSDK</product>
          <component>eSDK</component>
          <version>2.2.2</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Undecided</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Libertad">libertad.gonzalez.de.la.cruz</reporter>
          <assigned_to name="Paul Eggleton">bluelightning</assigned_to>
          
          
          <qa_contact name="Francisco Pedraza">francisco.j.pedraza.gonzalez</qa_contact>
          <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>76797</commentid>
    <comment_count>0</comment_count>
    <who name="Libertad">libertad.gonzalez.de.la.cruz</who>
    <bug_when>2017-09-13 16:09:48 +0000</bug_when>
    <thetext>Description 

ESDK install libraries headers and image_generation_binary_feeds testcases fail with the error that says 

UnboundLocalError: local variable &apos;ts&apos; referenced before assignment


STATUS: FAILED
BUILD: 2.2.2: rc2-60402978fe3648bf560b3386c6e9dd661cdf2083
ENVIRONMENT: Ubuntu, and debian 8
STEPS TO REPRODUCE: 

1. clone poky
2. source oe-init-build-env
3. echo &apos;SDK_EXT_TYPE = &quot;minimal&quot;&apos; &gt;&gt; conf/local.conf 
4. bitbake core-image-minimal  -c populate_sdk_ext
5. echo &apos;INHERIT += &quot;testsdk&quot;&apos; &gt;&gt; conf/local.conf
6. bitbake core image minimal -c testsdkext
7. conf/bblayers.conf
8. meta-selftest layer
9. oe-selftest --run-tests-by eSDK.oeSDKExtSelfTest.test_image_generation_binary_feeds

10. oe-selftest --run-tests-by eSDK.oeSDKExtSelfTest.test_install_libraries_headers




EXPECTED OUTCOME: 

testcases to execute correctly

Actual Outcome:

libby@liberta1-MOBL1:~/ESDK/poky/build$ oe-selftest --run-tests-by eSDK.oeSDKExtSelfTest.test_install_libraries_headers
2017-09-13 10:23:25,751 - selftest - INFO - Running bitbake -e to get BBPATH
2017-09-13 10:23:26,552 - selftest - INFO - Checking that everything is in order before running the tests
2017-09-13 10:23:27,343 - selftest - INFO - Running bitbake -p
Traceback (most recent call last):
  File &quot;/home/libby/ESDK/poky/scripts/oe-selftest&quot;, line 668, in &lt;module&gt;
    ret = main()
  File &quot;/home/libby/ESDK/poky/scripts/oe-selftest&quot;, line 527, in main
    testslist = ts
UnboundLocalError: local variable &apos;ts&apos; referenced before assignment
libby@liberta1-MOBL1:~/ESDK/poky/build$ oe-selftest --run-tests-by eSDK.oeSDKExtSelfTest.test_image_generation_binary_feeds
2017-09-13 10:24:22,415 - selftest - INFO - Running bitbake -e to get BBPATH
2017-09-13 10:24:23,236 - selftest - INFO - Checking that everything is in order before running the tests
2017-09-13 10:24:24,074 - selftest - INFO - Running bitbake -p
Traceback (most recent call last):
  File &quot;/home/libby/ESDK/poky/scripts/oe-selftest&quot;, line 668, in &lt;module&gt;
    ret = main()
  File &quot;/home/libby/ESDK/poky/scripts/oe-selftest&quot;, line 527, in main
    testslist = ts
UnboundLocalError: local variable &apos;ts&apos; referenced before assignment</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76804</commentid>
    <comment_count>1</comment_count>
    <who name="Libertad">libertad.gonzalez.de.la.cruz</who>
    <bug_when>2017-09-13 19:44:24 +0000</bug_when>
    <thetext>on Steps 9 and 10, that is not the way to run ESDK testcases, this will however turn into an oe-selftest bug since the option --run-tests-by does not verify the format of the parameters given. this will be another bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>