summaryrefslogtreecommitdiff
path: root/meta/classes
diff options
context:
space:
mode:
authorzjh <junhuix.zhang@intel.com>2015-09-02 15:39:54 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-09-03 13:55:39 +0100
commit085589b1018ba4d950baf7bcfb499be02c1b29fc (patch)
tree4460fb8f66508e2403b4a0c7ac25b6f2d90b6e75 /meta/classes
parente0af4b2c8f8e29ac6f8eccef401c7c004355359d (diff)
downloadopenembedded-core-085589b1018ba4d950baf7bcfb499be02c1b29fc.tar.gz
openembedded-core-085589b1018ba4d950baf7bcfb499be02c1b29fc.tar.bz2
openembedded-core-085589b1018ba4d950baf7bcfb499be02c1b29fc.zip
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 <junhuix.zhang@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-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 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