mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
oeqa context.py: use TEST_SUITES if set
If build target has set TEST_SUITES, then that should be the default test modules to execute. Fixes testexport.bbclass to run same tests as testimage.bbclass which already uses TEST_SUITES. (From OE-Core rev: c66b1dc0a2f973a84dc38b7cc27ae823e0f0a916) Signed-off-by: Mikko Rapeli <mikko.rapeli@linaro.org> Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
091c369009
commit
05e97d5e6e
@@ -179,9 +179,16 @@ class OETestContextExecutor(object):
|
||||
else:
|
||||
self.tc_kwargs['init']['td'] = {}
|
||||
|
||||
# Run image specific TEST_SUITE like testimage.bbclass by default
|
||||
test_suites = self.tc_kwargs['init']['td'].get("TEST_SUITES")
|
||||
if test_suites:
|
||||
test_suites = test_suites.split()
|
||||
|
||||
if args.run_tests:
|
||||
self.tc_kwargs['load']['modules'] = args.run_tests
|
||||
self.tc_kwargs['load']['modules_required'] = args.run_tests
|
||||
elif test_suites:
|
||||
self.tc_kwargs['load']['modules'] = test_suites
|
||||
else:
|
||||
self.tc_kwargs['load']['modules'] = []
|
||||
|
||||
|
||||
Reference in New Issue
Block a user