Bug 9996

Summary: Testimage is failing due missing "__init__.py" file
Product: [Build System, Metadata & Runtime] BSPs Reporter: Jose Perez C <jose.perez.carranza>
Component: bsps-runtimeAssignee: Mariano Lopez <mariano.lopez>
Status: VERIFIED FIXED QA Contact: Jose Perez C <jose.perez.carranza>
Severity: major    
Priority: Medium+ CC: sgw, yp.kernel.watcher, yp.watcher
Version: 2.2   
Target Milestone: 2.2 M3   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Jose Perez C 2016-07-21 20:57:59 UTC
1.- Set below variables on local.conf

INHERIT += "testimage"
TEST_TARGET = "simpleremote"
TEST_SERVER_IP= "HOST_IP"
TEST_TARGET_IP = "DUT ip"
TEST_SUITES = " auto"

2.- run `bitbake core-image-sato-sdk -c testimage`

Expected result:

All test defined for image should be executed 

Actual Result:

-ERROR: core-image-sato-sdk-1.0-r0 do_testimage: Tests directory poky_x86/meta/lib/oeqa/runtime exists but is missing __init__.py
-ERROR: core-image-sato-sdk-1.0-r0 do_testimage: Function failed: do_testimage

Note:
This happens when TEST_SUITES = " auto"
Comment 1 Mariano Lopez 2016-07-21 22:00:37 UTC
When using "auto" in TEST_SUITES it will execute all the test found in all layers. There is a check for __init__.py in all the <layer>/lib/oeqa/runtime/ directory only when using auto. This was written when bitbake was using python2, with python3 the import works different, so this check is no longer needed.
Comment 2 Mariano Lopez 2016-07-22 00:43:10 UTC
Sent patch to the mailing list:

http://lists.openembedded.org/pipermail/openembedded-core/2016-July/124162.html
Comment 3 Mariano Lopez 2016-08-04 20:25:30 UTC
This has been solved in commit:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=65a03c3f949e27f64f43b6b0b6452218dfe1a4ec
Comment 4 Jose Perez C 2016-08-12 18:56:06 UTC
Verified on master commit : 6b66e9317f4ec3a69f98f29836aafa35b52f3fc7