diff options
author | Ross Burton <ross.burton@arm.com> | 2025-05-10 09:43:35 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2025-05-12 22:01:55 +0100 |
commit | cabcadd9be11b4bc20d892ae23c9b44482aeecd6 (patch) | |
tree | 76404903cfaf34b24d09113805693945d0a4f427 /meta/lib/oeqa/sdk/testsdk.py | |
parent | 234b7ce5146b0e1653e4490c15442dda135a6234 (diff) | |
download | poky-cabcadd9be11b4bc20d892ae23c9b44482aeecd6.tar.gz |
testsdk: allow user to specify which tests to run
Following the usage of TEST_SUITES in testimage, add TESTSDK_SUITES to
specify the list of tests to execute. By default the variable is empty,
which means to run all discovered tests.
This makes it easier to work on a single test without having to run all
of the tests.
(From OE-Core rev: 28d437c52c77889b2ede0fc2f2d6777c5b0a553d)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oeqa/sdk/testsdk.py')
-rw-r--r-- | meta/lib/oeqa/sdk/testsdk.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/meta/lib/oeqa/sdk/testsdk.py b/meta/lib/oeqa/sdk/testsdk.py index 518b09febb..52b702b6a2 100644 --- a/meta/lib/oeqa/sdk/testsdk.py +++ b/meta/lib/oeqa/sdk/testsdk.py | |||
@@ -114,7 +114,8 @@ class TestSDK(TestSDKBase): | |||
114 | host_pkg_manifest=host_pkg_manifest, **context_args) | 114 | host_pkg_manifest=host_pkg_manifest, **context_args) |
115 | 115 | ||
116 | try: | 116 | try: |
117 | tc.loadTests(self.context_executor_class.default_cases) | 117 | modules = (d.getVar("TESTSDK_SUITES") or "").split() |
118 | tc.loadTests(self.context_executor_class.default_cases, modules) | ||
118 | except Exception as e: | 119 | except Exception as e: |
119 | import traceback | 120 | import traceback |
120 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) | 121 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) |