* [PATCH v1] dts: show missing NIC capabilities in DTS logs
@ 2025-12-12 21:01 Andrew Bailey
0 siblings, 0 replies; only message in thread
From: Andrew Bailey @ 2025-12-12 21:01 UTC (permalink / raw)
To: luca.vizzarro; +Cc: probb, dev, dmarx, Andrew Bailey
When a test was skipped due to a missing NIC capability, the logs should
print the name of the missing capability. This has since changed to show
only the integer representation of the missing capability. This patch
restores the previous behavior of printing the name of the missing
capability to the user.
Bugzilla ID: 1803
Signed-off-by: Andrew Bailey <abailey@iol.unh.edu>
---
dts/api/capabilities.py | 3 +++
1 file changed, 3 insertions(+)
diff --git a/dts/api/capabilities.py b/dts/api/capabilities.py
index 243759668f..d80e59c1dc 100644
--- a/dts/api/capabilities.py
+++ b/dts/api/capabilities.py
@@ -219,6 +219,9 @@ class NicCapability(IntEnum):
PORT_TX_OFFLOAD_SEND_ON_TIMESTAMP = auto()
QUEUE_TX_OFFLOAD_SEND_ON_TIMESTAMP = auto()
+ def __str__(self):
+ """Override the default string representation to return the name of the capability."""
+ return self.name
def requires_link_topology(
link_topology: LinkTopology,
--
2.50.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2025-12-12 21:02 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-12 21:01 [PATCH v1] dts: show missing NIC capabilities in DTS logs Andrew Bailey
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).