Commit 7ba106fc authored by Danielle Ratson's avatar Danielle Ratson Committed by David S. Miller

selftests: netdevsim: Increase sleep time in hw_stats_l3.sh test

hw_stats_l3.sh test is failing often for l3 stats shows less than 20
packets after 2 seconds sleep.

This is happening since there is a race between the 2 seconds sleep and
the netdevsim actually delivering the packets.

Increase the sleep time so the packets will be delivered successfully on
time.
Signed-off-by: default avatarDanielle Ratson <danieller@nvidia.com>
Reviewed-by: default avatarPetr Machata <petrm@nvidia.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 32329216
...@@ -319,11 +319,11 @@ counter_test() ...@@ -319,11 +319,11 @@ counter_test()
((pkts < 10)) ((pkts < 10))
check_err $? "$type stats show >= 10 packets after first enablement" check_err $? "$type stats show >= 10 packets after first enablement"
sleep 2 sleep 2.5
local pkts=$(get_hwstat dummy1 l3 rx.packets) local pkts=$(get_hwstat dummy1 l3 rx.packets)
((pkts >= 20)) ((pkts >= 20))
check_err $? "$type stats show < 20 packets after 2s passed" check_err $? "$type stats show < 20 packets after 2.5s passed"
$IP stats set dev dummy1 ${type}_stats off $IP stats set dev dummy1 ${type}_stats off
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment