]> code.ossystems Code Review - openembedded-core.git/commitdiff
testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES
authorzjh <junhuix.zhang@intel.com>
Tue, 23 Jun 2015 07:54:26 +0000 (15:54 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 9 Jul 2015 16:58:50 +0000 (17:58 +0100)
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>
meta/classes/testimage.bbclass

index ba254c289c56b3bf366312b5c262f75a49562529..1e3bb066d400bc7815893e278eea107cce2657ea 100644 (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')):