summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2017-05-26 15:37:46 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-06-02 13:36:14 +0100
commitead62f9a40ed418577c0f75012185d2552729a90 (patch)
tree99146bdd87afcc6ae23a449700be5bbd6ca12c2c /meta
parentc746ee11eca0f09d71e23986fb77392777e255cd (diff)
downloadpoky-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')
-rw-r--r--meta/classes/testexport.bbclass2
-rw-r--r--meta/classes/testimage.bbclass2
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):