diff options
author | zjh <junhuix.zhang@intel.com> | 2015-09-02 15:39:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-09-04 16:23:52 +0100 |
commit | fac0d67ec25f357684bcd0c80be282e1bca3adef (patch) | |
tree | 6bdf3ffc8fbb5f84d0ea6cf7fc0fee1e6d2ff553 /meta/classes | |
parent | 1efd172dd89d13e10269c13d9ed8bb1c7f7ea2f0 (diff) | |
download | poky-fac0d67ec25f357684bcd0c80be282e1bca3adef.tar.gz |
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]
(From OE-Core rev: 085589b1018ba4d950baf7bcfb499be02c1b29fc)
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.bbclass | 3 |
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): | |||
253 | testslist = get_tests_list(d) | 253 | testslist = get_tests_list(d) |
254 | testsrequired = [t for t in d.getVar("TEST_SUITES", True).split() if t != "auto"] | 254 | testsrequired = [t for t in d.getVar("TEST_SUITES", True).split() if t != "auto"] |
255 | 255 | ||
256 | tagexp = d.getVar("TEST_SUITES_TAGS", True) | ||
257 | |||
256 | # we need the host dumper in test context | 258 | # we need the host dumper in test context |
257 | host_dumper = get_host_dumper(d) | 259 | host_dumper = get_host_dumper(d) |
258 | 260 | ||
@@ -263,6 +265,7 @@ def testimage_main(d): | |||
263 | def __init__(self): | 265 | def __init__(self): |
264 | self.d = d | 266 | self.d = d |
265 | self.testslist = testslist | 267 | self.testslist = testslist |
268 | self.tagexp = tagexp | ||
266 | self.testsrequired = testsrequired | 269 | self.testsrequired = testsrequired |
267 | self.filesdir = os.path.join(os.path.dirname(os.path.abspath(oeqa.runtime.__file__)),"files") | 270 | self.filesdir = os.path.join(os.path.dirname(os.path.abspath(oeqa.runtime.__file__)),"files") |
268 | self.target = target | 271 | self.target = target |