[oe-commits] zjh : testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES
git at git.openembedded.org
git at git.openembedded.org
Thu Jul 9 17:00:50 UTC 2015
Module: openembedded-core.git
Branch: master
Commit: 2c3fe7351edd954230b14443f82914a3f70e8a40
URL: http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=2c3fe7351edd954230b14443f82914a3f70e8a40
Author: zjh <junhuix.zhang at intel.com>
Date: Tue Jun 23 15:54:26 2015 +0800
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 at intel.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
meta/classes/testimage.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
index ba254c2..1e3bb06 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')):
More information about the Openembedded-commits
mailing list