Bug 7834 - Support TCs under sub-folders of /lib/oeqa/
Summary: Support TCs under sub-folders of /lib/oeqa/
Status: VERIFIED FIXED
Alias: None
Product: Runtime Testing
Classification: QA/Testing
Component: general (show other bugs)
Version: 1.8.1
Hardware: All Multiple
: Medium+ enhancement
Target Milestone: 1.9 M1
Assignee: Costin
QA Contact: Cathy Shen
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2015-06-01 13:43 UTC by Cathy Shen
Modified: 2015-08-20 04:33 UTC (History)
2 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: Yes (doc changes required)


Attachments

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