diff options
author | Mikko Rapeli <mikko.rapeli@linaro.org> | 2025-07-02 10:25:13 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-07-07 22:12:49 +0100 |
commit | 05e97d5e6e24b4f44969bd2767db97152fb680bd (patch) | |
tree | dc8cda742516bd480c1d745d786719e1b8ad4232 | |
parent | 091c3690095a26fb5571d605c67e76a0cb0fe3bb (diff) | |
download | poky-05e97d5e6e24b4f44969bd2767db97152fb680bd.tar.gz |
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>
-rw-r--r-- | meta/lib/oeqa/core/context.py | 7 |
1 files changed, 7 insertions, 0 deletions
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): | |||
179 | else: | 179 | else: |
180 | self.tc_kwargs['init']['td'] = {} | 180 | self.tc_kwargs['init']['td'] = {} |
181 | 181 | ||
182 | # Run image specific TEST_SUITE like testimage.bbclass by default | ||
183 | test_suites = self.tc_kwargs['init']['td'].get("TEST_SUITES") | ||
184 | if test_suites: | ||
185 | test_suites = test_suites.split() | ||
186 | |||
182 | if args.run_tests: | 187 | if args.run_tests: |
183 | self.tc_kwargs['load']['modules'] = args.run_tests | 188 | self.tc_kwargs['load']['modules'] = args.run_tests |
184 | self.tc_kwargs['load']['modules_required'] = args.run_tests | 189 | self.tc_kwargs['load']['modules_required'] = args.run_tests |
190 | elif test_suites: | ||
191 | self.tc_kwargs['load']['modules'] = test_suites | ||
185 | else: | 192 | else: |
186 | self.tc_kwargs['load']['modules'] = [] | 193 | self.tc_kwargs['load']['modules'] = [] |
187 | 194 | ||