The rss_ctx.py tests would occasionally flake. I found that the successive calls to rand_port would occasionally return duplicate ports, breaking the tests invariants.
Add a new helper that guarantees generated ports are unique. Dimitri Daskalakis (2): selftests: net: py: Add rand_ports helper method selftests: drv-net: rss: Generate unique ports for RSS context tests .../drivers/net/hw/lib/py/__init__.py | 5 ++-- .../selftests/drivers/net/hw/rss_ctx.py | 13 +++++----- .../selftests/drivers/net/lib/py/__init__.py | 4 ++-- .../testing/selftests/net/lib/py/__init__.py | 5 ++-- tools/testing/selftests/net/lib/py/utils.py | 24 ++++++++++++++++--- 5 files changed, 35 insertions(+), 16 deletions(-) -- 2.47.3
