[PATCH v1] dts: show missing NIC capabilities in DTS logs
Andrew Bailey
abailey at iol.unh.edu
Fri Dec 12 22:01:42 CET 2025
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 at 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
More information about the dev
mailing list