]> 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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 3 Apr 2022 12:09:05 +0000 (13:09 +0100)
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>
tools/testing/selftests/net/fib_nexthops.sh

index d8ede0c81ac127c04a2a2d12723699816899e002..b3bf5319bb0e505b471e6c7798e85962411e920b 100755 (executable)
@@ -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()