Bug 9996 - Testimage is failing due missing "__init__.py" file
Summary: Testimage is failing due missing "__init__.py" file
Status: VERIFIED FIXED
Alias: None
Product: BSPs
Classification: Build System, Metadata & Runtime
Component: bsps-runtime (show other bugs)
Version: 2.2
Hardware: x86 Multiple
: Medium+ major
Target Milestone: 2.2 M3
Assignee: Mariano Lopez
QA Contact: Jose Perez C
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2016-07-21 20:57 UTC by Jose Perez C
Modified: 2016-08-12 18:56 UTC (History)
3 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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