Skip to content

Commit 692930c

Browse files
NikAleksandrovdavem330
authored andcommitted
selftests: net: fix nexthop warning cleanup double ip typo
I made a stupid typo when adding the nexthop route warning selftest and added both $IP and ip after it (double ip) on the cleanup path. The error doesn't show up when running the test, but obviously it doesn't cleanup properly after it. Fixes: 392baa3 ("selftests: net: add delete nexthop route warning test") Signed-off-by: Nikolay Aleksandrov <razor@blackwall.org> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 5a48b74 commit 692930c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tools/testing/selftests/net/fib_nexthops.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,8 +1220,8 @@ ipv4_fcnal()
12201220
[ $out1 -eq $out2 ]
12211221
rc=$?
12221222
log_test $rc 0 "Delete nexthop route warning"
1223-
run_cmd "$IP ip route delete 172.16.101.1/32 nhid 12"
1224-
run_cmd "$IP ip nexthop del id 12"
1223+
run_cmd "$IP route delete 172.16.101.1/32 nhid 12"
1224+
run_cmd "$IP nexthop del id 12"
12251225
}
12261226

12271227
ipv4_grp_fcnal()

0 commit comments

Comments
 (0)