From: Aníbal Limón Date: Fri, 26 May 2017 20:37:46 +0000 (-0500) Subject: classes/test{export,images}: Change modules to list X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~21274 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b588c5c65e55a31d61c86553158eef409cd71086;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git classes/test{export,images}: Change modules to list With the new filters by .[class].[testname] the modules arg is expected to be a list so use split into TEST_SUITES variable. Signed-off-by: Aníbal Limón Signed-off-by: Richard Purdie --- diff --git a/meta/classes/testexport.bbclass b/meta/classes/testexport.bbclass index 56edda99435..d070f07afad 100644 --- a/meta/classes/testexport.bbclass +++ b/meta/classes/testexport.bbclass @@ -113,7 +113,7 @@ def copy_needed_files(d, tc): oe.path.remove(cases_path) bb.utils.mkdirhier(cases_path) test_paths = get_runtime_paths(d) - test_modules = d.getVar('TEST_SUITES') + test_modules = d.getVar('TEST_SUITES').split() tc.loadTests(test_paths, modules=test_modules) for f in getSuiteCasesFiles(tc.suites): shutil.copy2(f, cases_path) diff --git a/meta/classes/testimage.bbclass b/meta/classes/testimage.bbclass index d42907cf807..1185593a1ba 100644 --- a/meta/classes/testimage.bbclass +++ b/meta/classes/testimage.bbclass @@ -257,7 +257,7 @@ def testimage_main(d): # Load tests before starting the target test_paths = get_runtime_paths(d) - test_modules = d.getVar('TEST_SUITES') + test_modules = d.getVar('TEST_SUITES').split() tc.loadTests(test_paths, modules=test_modules) if not getSuiteCases(tc.suites):