提交 e2ba732a 编写于 作者: D David Ahern 提交者: David S. Miller

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: NDavid Ahern <dsahern@gmail.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
上级 ee395a5e
......@@ -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"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册