summaryrefslogtreecommitdiff
path: root/meta/classes/testimage.bbclass
diff options
context:
space:
mode:
authorzjh <junhuix.zhang@intel.com>2015-06-23 15:54:26 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-09 17:58:50 +0100
commit2c3fe7351edd954230b14443f82914a3f70e8a40 (patch)
tree3dbf697d0b5f5fa55b5afe7445846a4cbe9401cc /meta/classes/testimage.bbclass
parentd0d641bf8cbf96d7c30dfcbdf2572d2709b56858 (diff)
downloadopenembedded-core-2c3fe7351edd954230b14443f82914a3f70e8a40.tar.gz
openembedded-core-2c3fe7351edd954230b14443f82914a3f70e8a40.tar.bz2
openembedded-core-2c3fe7351edd954230b14443f82914a3f70e8a40.zip
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] Signed-off-by: zjh <junhuix.zhang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/testimage.bbclass')
-rw-r--r--meta/classes/testimage.bbclass3
1 files changed, 3 insertions, 0 deletions
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index ba254c289c..1e3bb066d4 100644
--- a/meta/classes/testimage.bbclass
+++ b/meta/classes/testimage.bbclass
@@ -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')):