[PATCH v1 3/3] dts: fix doc generation bug
Paul Szczepanek
paul.szczepanek at arm.com
Thu May 29 14:28:16 CEST 2025
Patrick is right but it's OK, I'll merge as part of the series - in the
end it's a separate commit.
Reviewed-by: Paul Szczepanek <paul.szczepanek at arm.com>
On 28/05/2025 21:28, Patrick Robb wrote:
>
>
> On Tue, May 27, 2025 at 11:37 AM Dean Marx <dmarx at iol.unh.edu
> <mailto:dmarx at iol.unh.edu>> wrote:
>
> Fix a bug in the port stats check test suite that was causing
> the DTS doc generation to fail.
>
> Fixes: 8f21210b1d50 ("dts: add port stats check test suite")
>
> Signed-off-by: Dean Marx <dmarx at iol.unh.edu <mailto:dmarx at iol.unh.edu>>
> ---
> dts/tests/TestSuite_port_stats_checks.py | 13 +++++++++----
> 1 file changed, 9 insertions(+), 4 deletions(-)
>
> diff --git a/dts/tests/TestSuite_port_stats_checks.py b/dts/tests/
> TestSuite_port_stats_checks.py
> index 2a3fb06946..491c2263b6 100644
> --- a/dts/tests/TestSuite_port_stats_checks.py
> +++ b/dts/tests/TestSuite_port_stats_checks.py
> @@ -51,10 +51,15 @@ class TestPortStatsChecks(TestSuite):
>
> #: Length of the packet being sent including the IP and frame
> headers.
> total_packet_len: ClassVar[int] = 100
> - #: Packet to send during testing.
> - send_pkt: ClassVar[Packet] = (
> - Ether() / IP() / Raw(b"X" * (total_packet_len -
> ip_header_len - ether_header_len))
> - )
> +
> + @property
> + def send_pkt(self) -> Packet:
> + """Packet to send during testing."""
> + return (
> + Ether()
> + / IP()
> + / Raw(b"X" * (self.total_packet_len -
> self.ip_header_len - self.ether_header_len))
> + )
>
>
> Looks good. In my opinion this should be a standalone patch, since it's
> unrelated to patch 1 and 2, but it's not functionally relevant since
> there is no such thing as a series in git, so you don't need to
> resubmit. Keep in mind for future series though that they should be
> logically grouped.
>
> Reviewed-by: Patrick Robb <probb at iol.unh.edu <mailto:probb at iol.unh.edu>>
>
>
>
> def extract_noise_information(
> self, verbose_out: list[TestPmdVerbosePacket]
> --
> 2.49.0
>
More information about the dev
mailing list