mirror of
https://git.yoctoproject.org/poky
synced 2026-05-07 16:59:22 +00:00
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>
This commit is contained in:
committed by
Richard Purdie
parent
c746ee11ec
commit
ead62f9a40
@@ -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)
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user