From: Luca Vizzarro <luca.vizzarro@arm.com>
The test suite name property was previously returning the class name
instead of the way that test suite are actually named, e.g.
TestHelloWorld instead of hello_world.
This change rectifies this inconsistency.
Signed-off-by: Luca Vizzarro <luca.vizzarro@arm.com>
---
dts/framework/test_suite.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/dts/framework/test_suite.py b/dts/framework/test_suite.py
index 145b79496f..d4e06a567a 100644
--- a/dts/framework/test_suite.py
+++ b/dts/framework/test_suite.py
@@ -110,8 +110,11 @@ def __init__(self, config: BaseConfig):
@property
def name(self) -> str:
- """The name of the test suite class."""
- return type(self).__name__
+ """The name of the test suite."""
+ module_prefix = (
+ f"{TestSuiteSpec.TEST_SUITES_PACKAGE_NAME}.{TestSuiteSpec.TEST_SUITE_MODULE_PREFIX}"
+ )
+ return type(self).__module__[len(module_prefix) :]
@property
def topology(self) -> Topology:
--
2.43.0