Bug 7834

Summary: Support TCs under sub-folders of /lib/oeqa/
Product: [QA/Testing] Runtime Testing Reporter: Cathy Shen <cathy.shen>
Component: generalAssignee: Costin <costin.c.constantin>
Status: VERIFIED FIXED QA Contact: Cathy Shen <cathy.shen>
Severity: enhancement    
Priority: Medium+ CC: alexandru.c.georgescu, jing.j.wang
Version: 1.8.1   
Target Milestone: 1.9 M1   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: Yes (doc changes required)

Description Cathy Shen 2015-06-01 13:43:32 UTC
There are lots of test cases for different domains, I'd like to categorize them in different sub-folders under  /lib/oeqa/runtime/, but seems like it's not supported by imagetest yet.
Comment 1 Cathy Shen 2015-06-05 03:56:06 UTC
JingWang should have a patch to handle this.
Comment 2 jingwang 2015-06-07 22:51:09 UTC
Current implementation just support loading TC from the python module which sit directly under /lib/oeqa/runtime, not support TCs in subfolder. To resolve it, I think testimage should support TESTSUITES with complete TC path, such as
oeqa.runtime.sanity.baseos, oeqa.runtime.pnp.memory. Next, with unittest TestLoader, it is easy to load those TCs, just small update on existing get_tc_list function.

I'll provide a patch.
Comment 3 Cathy Shen 2015-07-14 06:04:35 UTC
Merged to Yocto master branch. Commit ID: 129aed8d799b91c7327cebcb241ad3f7a4f7de66
Comment 4 Cathy Shen 2015-07-14 06:06:46 UTC
(In reply to comment #3)
> Merged to Yocto master branch. Commit ID:
> 129aed8d799b91c7327cebcb241ad3f7a4f7de66

To be more clear, it's merged to poky master branch.
Comment 5 Cathy Shen 2015-07-14 06:07:47 UTC
Verified with poky master branch.