summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThadeu Lima de Souza Cascardo2019-02-22 11:27:41 +0100
committerDavid S. Miller2019-02-24 03:34:20 +0100
commitaf548a27b158d548d41e56255e6eaca1658cc3be (patch)
treee10d30ee65265f7177c40167c233d01067fbd88a
parentnet: set static variable an initial value in atl2_probe() (diff)
downloadkernel-qcow2-linux-af548a27b158d548d41e56255e6eaca1658cc3be.tar.gz
kernel-qcow2-linux-af548a27b158d548d41e56255e6eaca1658cc3be.tar.xz
kernel-qcow2-linux-af548a27b158d548d41e56255e6eaca1658cc3be.zip
selftests: fib_tests: sleep after changing carrier. again.
Just like commit e2ba732a1681 ("selftests: fib_tests: sleep after changing carrier"), wait one second to allow linkwatch to propagate the carrier change to the stack. There are two sets of carrier tests. The first slept after the carrier was set to off, and when the second set ran, it was likely that the linkwatch would be able to run again without much delay, reducing the likelihood of a race. However, if you run 'fib_tests.sh -t carrier' on a loop, you will quickly notice the failures. Sleeping on the second set of tests make the failures go away. Cc: David Ahern <dsahern@gmail.com> Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com> Reviewed-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
-rwxr-xr-xtools/testing/selftests/net/fib_tests.sh1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/testing/selftests/net/fib_tests.sh b/tools/testing/selftests/net/fib_tests.sh
index 802b4af18729..1080ff55a788 100755
--- a/tools/testing/selftests/net/fib_tests.sh
+++ b/tools/testing/selftests/net/fib_tests.sh
@@ -388,6 +388,7 @@ fib_carrier_unicast_test()
set -e
$IP link set dev dummy0 carrier off
+ sleep 1
set +e
echo " Carrier down"