[OE-core] [PATCH 1/2] testimage: Support full TC path such oeqa.runtime.pnp.get_memory_size in TEST_SUITES

Shen, Cathy cathy.shen at intel.com
Thu Jul 2 01:52:12 UTC 2015


Are we OK with this patch?

-Cathy

>-----Original Message-----
>From: openembedded-core-bounces at lists.openembedded.org
>[mailto:openembedded-core-bounces at lists.openembedded.org] On Behalf Of zjh
>Sent: Tuesday, June 23, 2015 3:54 PM
>To: openembedded-core at lists.openembedded.org
>Subject: [OE-core] [PATCH 1/2] testimage: Support full TC path such
>oeqa.runtime.pnp.get_memory_size in TEST_SUITES
>
>https://bugzilla.yoctoproject.org/show_bug.cgi?id=7834
>
>If a TC name start with "oeqa", it is thought as a full TC path. if not,
>follow original logic (assume under oeqa.runtime), and this case will be    7 load by
>loadTests.
>for example:
>TEST_SUITES = "oeqa.runtime.pnp.get_memory_size oeqa.runtime.sanity.reboot"
>this will run these two case when bitbake -c testimage
>
>Signed-off-by: zjh <junhuix.zhang at intel.com>
>---
> meta/classes/testimage.bbclass | 3 +++
> 1 file changed, 3 insertions(+)
>
>diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass
>index 4074ff7..5d74fe4 100644
>--- a/meta/classes/testimage.bbclass
>+++ b/meta/classes/testimage.bbclass
>@@ -77,6 +77,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')):
>--
>1.9.1
>
>--
>_______________________________________________
>Openembedded-core mailing list
>Openembedded-core at lists.openembedded.org
>http://lists.openembedded.org/mailman/listinfo/openembedded-core



More information about the Openembedded-core mailing list