diff options
author | Aníbal Limón <anibal.limon@linux.intel.com> | 2017-05-26 15:37:46 -0500 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-06-02 13:36:14 +0100 |
commit | ead62f9a40ed418577c0f75012185d2552729a90 (patch) | |
tree | 99146bdd87afcc6ae23a449700be5bbd6ca12c2c /meta/classes | |
parent | c746ee11eca0f09d71e23986fb77392777e255cd (diff) | |
download | poky-ead62f9a40ed418577c0f75012185d2552729a90.tar.gz |
classes/test{export,images}: Change modules to list
With the new filters by <module>.[class].[testname] the modules
arg is expected to be a list so use split into TEST_SUITES variable.
(From OE-Core rev: b588c5c65e55a31d61c86553158eef409cd71086)
Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/testexport.bbclass | 2 | ||||
-rw-r--r-- | meta/classes/testimage.bbclass | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index 56edda9943..d070f07afa 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass | |||
@@ -113,7 +113,7 @@ def copy_needed_files(d, tc): | |||
113 | oe.path.remove(cases_path) | 113 | oe.path.remove(cases_path) |
114 | bb.utils.mkdirhier(cases_path) | 114 | bb.utils.mkdirhier(cases_path) |
115 | test_paths = get_runtime_paths(d) | 115 | test_paths = get_runtime_paths(d) |
116 | test_modules = d.getVar('TEST_SUITES') | 116 | test_modules = d.getVar('TEST_SUITES').split() |
117 | tc.loadTests(test_paths, modules=test_modules) | 117 | tc.loadTests(test_paths, modules=test_modules) |
118 | for f in getSuiteCasesFiles(tc.suites): | 118 | for f in getSuiteCasesFiles(tc.suites): |
119 | shutil.copy2(f, cases_path) | 119 | shutil.copy2(f, cases_path) |
diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index d42907cf80..1185593a1b 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass | |||
@@ -257,7 +257,7 @@ def testimage_main(d): | |||
257 | 257 | ||
258 | # Load tests before starting the target | 258 | # Load tests before starting the target |
259 | test_paths = get_runtime_paths(d) | 259 | test_paths = get_runtime_paths(d) |
260 | test_modules = d.getVar('TEST_SUITES') | 260 | test_modules = d.getVar('TEST_SUITES').split() |
261 | tc.loadTests(test_paths, modules=test_modules) | 261 | tc.loadTests(test_paths, modules=test_modules) |
262 | 262 | ||
263 | if not getSuiteCases(tc.suites): | 263 | if not getSuiteCases(tc.suites): |