diff options
-rw-r--r-- | meta/classes-recipe/testsdk.bbclass | 3 | ||||
-rw-r--r-- | meta/lib/oeqa/sdk/testsdk.py | 3 | ||||
-rw-r--r-- | meta/lib/oeqa/sdkext/testsdk.py | 3 |
3 files changed, 7 insertions, 2 deletions
diff --git a/meta/classes-recipe/testsdk.bbclass b/meta/classes-recipe/testsdk.bbclass index fd82e6ef41..59d2834c99 100644 --- a/meta/classes-recipe/testsdk.bbclass +++ b/meta/classes-recipe/testsdk.bbclass | |||
@@ -14,6 +14,9 @@ | |||
14 | # | 14 | # |
15 | # where "<image-name>" is an image like core-image-sato. | 15 | # where "<image-name>" is an image like core-image-sato. |
16 | 16 | ||
17 | # List of test modules to run, or run all that can be found if unset | ||
18 | TESTSDK_SUITES ?= "" | ||
19 | |||
17 | TESTSDK_CLASS_NAME ?= "oeqa.sdk.testsdk.TestSDK" | 20 | TESTSDK_CLASS_NAME ?= "oeqa.sdk.testsdk.TestSDK" |
18 | TESTSDKEXT_CLASS_NAME ?= "oeqa.sdkext.testsdk.TestSDKExt" | 21 | TESTSDKEXT_CLASS_NAME ?= "oeqa.sdkext.testsdk.TestSDKExt" |
19 | 22 | ||
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()) |
diff --git a/meta/lib/oeqa/sdkext/testsdk.py b/meta/lib/oeqa/sdkext/testsdk.py index 9d5a99d900..6dc23065a4 100644 --- a/meta/lib/oeqa/sdkext/testsdk.py +++ b/meta/lib/oeqa/sdkext/testsdk.py | |||
@@ -82,7 +82,8 @@ class TestSDKExt(TestSDKBase): | |||
82 | host_pkg_manifest=host_pkg_manifest) | 82 | host_pkg_manifest=host_pkg_manifest) |
83 | 83 | ||
84 | try: | 84 | try: |
85 | tc.loadTests(OESDKExtTestContextExecutor.default_cases) | 85 | modules = (d.getVar("TESTSDK_SUITES") or "").split() |
86 | tc.loadTests(OESDKExtTestContextExecutor.default_cases, modules) | ||
86 | except Exception as e: | 87 | except Exception as e: |
87 | import traceback | 88 | import traceback |
88 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) | 89 | bb.fatal("Loading tests failed:\n%s" % traceback.format_exc()) |