Skip to content

Commit e2ba732

Browse files
dsaherndavem330
authored andcommitted
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>
1 parent ee395a5 commit e2ba732

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/testing/selftests/net/fib_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -282,6 +282,7 @@ fib_carrier_local_test()
282282

283283
set -e
284284
ip -netns testns link set dev dummy0 carrier off
285+
sleep 1
285286
set +e
286287

287288
echo " Carrier off on nexthop"

0 commit comments

Comments
 (0)