diff options
author | Jakub Kicinski <kuba@kernel.org> | 2024-01-14 14:47:26 -0800 |
---|---|---|
committer | Paolo Abeni <pabeni@redhat.com> | 2024-01-16 12:16:04 +0100 |
commit | 2c4ca7977298c6a3d237d7d703df97e043b75c12 (patch) | |
tree | 5c134a2bb62358644b4e93536df15caad2750f42 /tools/testing/selftests | |
parent | a23aa04042187cbde16f470b49d4ad60d32e9206 (diff) | |
download | linux-stable-2c4ca7977298c6a3d237d7d703df97e043b75c12.tar.gz linux-stable-2c4ca7977298c6a3d237d7d703df97e043b75c12.tar.bz2 linux-stable-2c4ca7977298c6a3d237d7d703df97e043b75c12.zip |
selftests: netdevsim: sprinkle more udevadm settle
Number of tests are failing when netdev renaming is active
on the system. Add udevadm settle in logic determining
the names.
Fixes: 242aaf03dc9b ("selftests: add a test for ethtool pause stats")
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Reviewed-by: Simon Horman <horms@kernel.org>
Link: https://lore.kernel.org/r/20240114224726.1210532-1-kuba@kernel.org
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r-- | tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh | 1 | ||||
-rwxr-xr-x | tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh b/tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh index 922744059aaa..80160579e0cc 100644 --- a/tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh +++ b/tools/testing/selftests/drivers/net/netdevsim/ethtool-common.sh @@ -51,6 +51,7 @@ function make_netdev { fi echo $NSIM_ID $@ > /sys/bus/netdevsim/new_device + udevadm settle # get new device name ls /sys/bus/netdevsim/devices/netdevsim${NSIM_ID}/net/ } diff --git a/tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh b/tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh index 1b08e042cf94..4855ef597a15 100755 --- a/tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh +++ b/tools/testing/selftests/drivers/net/netdevsim/udp_tunnel_nic.sh @@ -233,6 +233,7 @@ function print_tables { function get_netdev_name { local -n old=$1 + udevadm settle new=$(ls /sys/class/net) for netdev in $new; do |