From 085589b1018ba4d950baf7bcfb499be02c1b29fc Mon Sep 17 00:00:00 2001 From: zjh Date: Wed, 2 Sep 2015 15:39:54 +0800 Subject: testimage: filter proper test cases by tags If a test case is decorate by oeqa.utils.decorators.tag, this case will by add a tag, testrunner will filter these tags by TEST_SUITES_TAGS [YOCTO #7849] Signed-off-by: zjh Signed-off-by: Richard Purdie --- meta/classes/testimage.bbclass | 3 +++ 1 file changed, 3 insertions(+) (limited to 'meta/classes') diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index 8fa00f5fbf..7c783ea065 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -253,6 +253,8 @@ def testimage_main(d): testslist = get_tests_list(d) testsrequired = [t for t in d.getVar("TEST_SUITES", True).split() if t != "auto"] + tagexp = d.getVar("TEST_SUITES_TAGS", True) + # we need the host dumper in test context host_dumper = get_host_dumper(d) @@ -263,6 +265,7 @@ def testimage_main(d): def __init__(self): self.d = d self.testslist = testslist + self.tagexp = tagexp self.testsrequired = testsrequired self.filesdir = os.path.join(os.path.dirname(os.path.abspath(oeqa.runtime.__file__)),"files") self.target = target -- cgit v1.2.3