[PATCH 1/2] dts: change test suite name property
Patrick Robb
probb at iol.unh.edu
Fri Jul 4 03:54:02 CEST 2025
Reviewed-by: Patrick Robb <probb at iol.unh.edu>
On Fri, Jun 27, 2025 at 11:12 AM Thomas Wilks <thomas.wilks at arm.com> wrote:
> From: Luca Vizzarro <luca.vizzarro at 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 at 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mails.dpdk.org/archives/dev/attachments/20250703/2094c406/attachment-0001.htm>
More information about the dev
mailing list