summaryrefslogtreecommitdiffstats
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 18:00:21 +0100
commit129aed8d799b91c7327cebcb241ad3f7a4f7de66 (patch)
treeed31d72623af6ecc6ab34990ec166974b33cbc3e
parent92c10c9fc3a92e8fefe31d0c9cf321332169d44b (diff)
downloadpoky-129aed8d799b91c7327cebcb241ad3f7a4f7de66.tar.gz
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>
-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"):
83 testslist = [] 83 testslist = []
84 for testname in testsuites: 84 for testname in testsuites:
85 if testname != "auto": 85 if testname != "auto":
86 if testname.startswith("oeqa."):
87 testslist.append(testname)
88 continue
86 found = False 89 found = False
87 for p in bbpath: 90 for p in bbpath:
88 if os.path.exists(os.path.join(p, 'lib', 'oeqa', type, testname + '.py')): 91 if os.path.exists(os.path.join(p, 'lib', 'oeqa', type, testname + '.py')):