testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES

If a TC name start with "oeqa", it is thought as a full TC path. if not,
follow original logic (assume under oeqa.runtime)

For example:

TEST_SUITES = "oeqa.runtime.pnp.get_memory_size oeqa.runtime.sanity.reboot"

will run these two case when bitbake -c testimage

[YOCTO #7834]

(From OE-Core rev: 2c3fe7351edd954230b14443f82914a3f70e8a40)

Signed-off-by: zjh <junhuix.zhang@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
zjh 2015-06-23 15:54:26 +08:00 committed by Richard Purdie
parent 92c10c9fc3
commit 129aed8d79
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ def get_tests_list(d, type="runtime"):
testslist = []
for testname in testsuites:
if testname != "auto":
if testname.startswith("oeqa."):
testslist.append(testname)
continue
found = False
for p in bbpath:
if os.path.exists(os.path.join(p, 'lib', 'oeqa', type, testname + '.py')):