summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/net/fib_tests.sh
diff options
context:
space:
mode:
authorDavid Ahern2018-02-13 17:37:36 +0100
committerDavid S. Miller2018-02-13 20:34:28 +0100
commite2ba732a1681d907a6dffbaf9802aebcac233099 (patch)
tree621fd561ed3ec2ffe9c94dc33f7abee560662e91 /tools/testing/selftests/net/fib_tests.sh
parentselftests: fib_tests: Move admin of dummy0 to helpers (diff)
downloadkernel-qcow2-linux-e2ba732a1681d907a6dffbaf9802aebcac233099.tar.gz
kernel-qcow2-linux-e2ba732a1681d907a6dffbaf9802aebcac233099.tar.xz
kernel-qcow2-linux-e2ba732a1681d907a6dffbaf9802aebcac233099.zip
selftests: fib_tests: sleep after changing carrier
sleep for a second after setting carrier down to allow linkwatch to propagate the change to the routing stack via netdev_state_change. As it stands there is a race setting carrier down on the dummy device and then checking the linkdown flag in the routes. Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/testing/selftests/net/fib_tests.sh')
-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 e113cfd659fc..b617985ecdc1 100755
--- a/tools/testing/selftests/net/fib_tests.sh
+++ b/tools/testing/selftests/net/fib_tests.sh
@@ -282,6 +282,7 @@ fib_carrier_local_test()
set -e
ip -netns testns link set dev dummy0 carrier off
+ sleep 1
set +e
echo " Carrier off on nexthop"