selftests: mlxsw: ethtool_lanes: Wait for lanes parameter dump explicitly
authorDanielle Ratson <danieller@nvidia.com>
Fri, 12 Apr 2024 17:03:10 +0000 (19:03 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Tue, 16 Apr 2024 10:14:41 +0000 (12:14 +0200)
commit8d612ed4b55435812fe1cfb73be1dff4a4b9ce07
tree9535111f77a25a34d1010b30f0a43f550302c0e6
parentbfc42940682b809e1f51491d8d9f82b7638fcbde
selftests: mlxsw: ethtool_lanes: Wait for lanes parameter dump explicitly

The ethtool dump includes the lanes parameter only when the port is up.
Therefore, the ethtool_lanes.sh test waits for ports to come before testing
the lanes parameter.

In some cases, the test considers the port as up, but the lanes parameter
is not yet dumped although assumed to be, resulting in ethtool_lanes.sh
test failure.

To avoid that, ensure that the lanes parameter is indeed dumped by waiting
for it explicitly, before preforming the test cases.

Signed-off-by: Danielle Ratson <danieller@nvidia.com>
Reviewed-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Petr Machata <petrm@nvidia.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
tools/testing/selftests/drivers/net/mlxsw/ethtool_lanes.sh