From 05e97d5e6e24b4f44969bd2767db97152fb680bd Mon Sep 17 00:00:00 2001 From: Mikko Rapeli Date: Wed, 2 Jul 2025 10:25:13 +0300 Subject: 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 Signed-off-by: Antonin Godard Signed-off-by: Richard Purdie --- meta/lib/oeqa/core/context.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/meta/lib/oeqa/core/context.py b/meta/lib/oeqa/core/context.py index 9313271f58..46de9135c1 100644 --- a/meta/lib/oeqa/core/context.py +++ b/meta/lib/oeqa/core/context.py @@ -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'] = [] -- cgit v1.2.3-54-g00ecf