]> git.baikalelectronics.ru Git - kernel.git/commitdiff
selftests: net: fix nexthop warning cleanup double ip typo
authorNikolay Aleksandrov <razor@blackwall.org>
Fri, 1 Apr 2022 15:54:27 +0000 (18:54 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2022 10:23:05 +0000 (11:23 +0100)
[ Upstream commit 0ccc341f8b76c8bc66ae8e142dd66d48d0cb3e04 ]

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: ebc172b37e74 ("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>
Stable-dep-of: d5082d386eee ("ipv4: Fix route deletion when nexthop info is not specified")
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/net/fib_nexthops.sh

index 06c3694c64a5b7bc352cc3dbf1fadb47e9804f92..7b154b61d108181c210c336c041d9ddab6622243 100755 (executable)
@@ -595,8 +595,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()