summaryrefslogtreecommitdiff
path: root/dts/framework/test_suite.py
diff options
context:
space:
mode:
authorJuraj Linkeš <[email protected]>2024-09-23 17:02:04 +0200
committerPatrick Robb <[email protected]>2024-10-11 20:08:12 +0200
commiteebfb5bb7b1427e0ba2c48190230cb8701517766 (patch)
treeb7abd9a128f4abc70bedd1c310c823f221fc1c1d /dts/framework/test_suite.py
parent0b5ee16d1bee1a398aabd31de6597e391969b53e (diff)
dts: add basic capability support
A test case or suite may require certain capabilities to be present in the tested environment. Add the basic infrastructure for checking the support status of capabilities: * The Capability ABC defining the common capability API * Extension of the TestProtocol with required capabilities (each test suite or case stores the capabilities it requires) * Integration with the runner which calls the new APIs to get which capabilities are supported. Signed-off-by: Juraj Linkeš <[email protected]> Reviewed-by: Jeremy Spewock <[email protected]> Reviewed-by: Dean Marx <[email protected]> Reviewed-by: Luca Vizzarro <[email protected]>
Diffstat (limited to 'dts/framework/test_suite.py')
-rw-r--r--dts/framework/test_suite.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py
index d92c10a7d4..ebc6284f3d 100644
--- a/dts/framework/test_suite.py
+++ b/dts/framework/test_suite.py
@@ -564,6 +564,7 @@ class TestCase(TestProtocol, Protocol[TestSuiteMethodType]):
test_case = cast(type[TestCase], func)
test_case.skip = cls.skip
test_case.skip_reason = cls.skip_reason
+ test_case.required_capabilities = set()
test_case.test_type = test_case_type
return test_case