Bug 12079

Summary: [Morty][Test Case 1602] TCTEMP_2.3_AUTO_oeselftest_eSDK_install_libraries_headers
Product: [Yocto Project Subprojects] eSDK Reporter: Libertad <libertad.gonzalez.de.la.cruz>
Component: eSDKAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED INVALID QA Contact: Francisco Pedraza <francisco.j.pedraza.gonzalez>
Severity: normal    
Priority: Undecided    
Version: 2.2.2   
Target Milestone: ---   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Don't know

Description Libertad 2017-09-13 16:09:48 UTC
Description 

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

UnboundLocalError: local variable 'ts' 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 'SDK_EXT_TYPE = "minimal"' >> conf/local.conf 
4. bitbake core-image-minimal  -c populate_sdk_ext
5. echo 'INHERIT += "testsdk"' >> 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 "/home/libby/ESDK/poky/scripts/oe-selftest", line 668, in <module>
    ret = main()
  File "/home/libby/ESDK/poky/scripts/oe-selftest", line 527, in main
    testslist = ts
UnboundLocalError: local variable 'ts' 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 "/home/libby/ESDK/poky/scripts/oe-selftest", line 668, in <module>
    ret = main()
  File "/home/libby/ESDK/poky/scripts/oe-selftest", line 527, in main
    testslist = ts
UnboundLocalError: local variable 'ts' referenced before assignment
Comment 1 Libertad 2017-09-13 19:44:24 UTC
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.