Reviewed-by: Patrick Robb <[email protected]>
On Mon, Dec 15, 2025 at 4:40 PM Andrew Bailey <[email protected]> wrote:
> 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
> Fixes: eba657ae3c3c ("dts: move testpmd module from framework to API
> directory")
>
> Signed-off-by: Andrew Bailey <[email protected]>
> ---
> dts/api/capabilities.py | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/dts/api/capabilities.py b/dts/api/capabilities.py
> index 243759668f..2d0cd65854 100644
> --- a/dts/api/capabilities.py
> +++ b/dts/api/capabilities.py
> @@ -219,6 +219,10 @@ 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
>
>