summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorNikolay Aleksandrov <razor@blackwall.org>2022-04-01 18:54:27 +0300
committerDavid S. Miller <davem@davemloft.net>2022-04-03 13:09:05 +0100
commit692930cc435099580a4b9e32fa781b0688c18439 (patch)
tree7e302daca754ddffa17ac3595ad06fb84f69d3c2 /tools
parent5a48b7433a5aee719ab242d2feadaf4c9e065989 (diff)
downloadlinux-stable-692930cc435099580a4b9e32fa781b0688c18439.tar.gz
linux-stable-692930cc435099580a4b9e32fa781b0688c18439.tar.bz2
linux-stable-692930cc435099580a4b9e32fa781b0688c18439.zip
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: 392baa339c6a ("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>
Diffstat (limited to 'tools')
-rwxr-xr-xtools/testing/selftests/net/fib_nexthops.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/net/fib_nexthops.sh b/tools/testing/selftests/net/fib_nexthops.sh
index d8ede0c81ac1..b3bf5319bb0e 100755
--- a/tools/testing/selftests/net/fib_nexthops.sh
+++ b/tools/testing/selftests/net/fib_nexthops.sh
@@ -1220,8 +1220,8 @@ ipv4_fcnal()
[ $out1 -eq $out2 ]
rc=$?
log_test $rc 0 "Delete nexthop route warning"
- run_cmd "$IP ip route delete 172.16.101.1/32 nhid 12"
- run_cmd "$IP ip nexthop del id 12"
+ run_cmd "$IP route delete 172.16.101.1/32 nhid 12"
+ run_cmd "$IP nexthop del id 12"
}
ipv4_grp_fcnal()