From: Thomas Wilks <thomas.wilks@arm.com>
To: dev@dpdk.org
Cc: Paul Szczepanek <paul.szczepanek@arm.com>,
Patrick Robb <probb@iol.unh.edu>,
Luca Vizzarro <luca.vizzarro@arm.com>
Subject: [PATCH 1/2] dts: change test suite name property
Date: Fri, 27 Jun 2025 16:12:40 +0100 [thread overview]
Message-ID: <20250627151241.335114-2-thomas.wilks@arm.com> (raw)
In-Reply-To: <20250627151241.335114-1-thomas.wilks@arm.com>
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
next prev parent reply other threads:[~2025-06-27 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-27 15:12 [PATCH 0/2] dts: rework test results Thomas Wilks
2025-06-27 15:12 ` Thomas Wilks [this message]
2025-06-27 15:12 ` [PATCH 2/2] " Thomas Wilks
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250627151241.335114-2-thomas.wilks@arm.com \
--to=thomas.wilks@arm.com \
--cc=dev@dpdk.org \
--cc=luca.vizzarro@arm.com \
--cc=paul.szczepanek@arm.com \
--cc=probb@iol.unh.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).