@@ -14,6 +14,9 @@
#
# where "<image-name>" is an image like core-image-sato.
+# List of test modules to run, or run all that can be found if unset
+TESTSDK_SUITES ?= ""
+
TESTSDK_CLASS_NAME ?= "oeqa.sdk.testsdk.TestSDK"
TESTSDKEXT_CLASS_NAME ?= "oeqa.sdkext.testsdk.TestSDKExt"
@@ -114,7 +114,8 @@ class TestSDK(TestSDKBase):
host_pkg_manifest=host_pkg_manifest, **context_args)
try:
- tc.loadTests(self.context_executor_class.default_cases)
+ modules = (d.getVar("TESTSDK_SUITES") or "").split()
+ tc.loadTests(self.context_executor_class.default_cases, modules)
except Exception as e:
import traceback
bb.fatal("Loading tests failed:\n%s" % traceback.format_exc())
@@ -82,7 +82,8 @@ class TestSDKExt(TestSDKBase):
host_pkg_manifest=host_pkg_manifest)
try:
- tc.loadTests(OESDKExtTestContextExecutor.default_cases)
+ modules = (d.getVar("TESTSDK_SUITES") or "").split()
+ tc.loadTests(OESDKExtTestContextExecutor.default_cases, modules)
except Exception as e:
import traceback
bb.fatal("Loading tests failed:\n%s" % traceback.format_exc())