]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: Fix suppress test in fib_tests.sh
authorDavid Ahern <dsahern@gmail.com>
Tue, 21 Apr 2020 14:47:24 +0000 (08:47 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Apr 2020 14:33:09 +0000 (16:33 +0200)
commit1981fe4f9ac8abba7d2f7aa1ce70d7768bb964eb
tree20aced0e7d854571874b681817e2cf436d88d501
parent14b71debe736f184414acd1ee9d75ac3dfa3a0d4
selftests: Fix suppress test in fib_tests.sh

[ Upstream commit 6a45d7c64e3ea1cf64d28328c47a67b1ab0f6175 ]

fib_tests is spewing errors:
    ...
    Cannot open network namespace "ns1": No such file or directory
    Cannot open network namespace "ns1": No such file or directory
    Cannot open network namespace "ns1": No such file or directory
    Cannot open network namespace "ns1": No such file or directory
    ping: connect: Network is unreachable
    Cannot open network namespace "ns1": No such file or directory
    Cannot open network namespace "ns1": No such file or directory
    ...

Each test entry in fib_tests is supposed to do its own setup and
cleanup. Right now the $IP commands in fib_suppress_test are
failing because there is no ns1. Add the setup/cleanup and logging
expected for each test.

Fixes: 44308a9c2d23 ("ipv6: do not free rt if FIB_LOOKUP_NOREF is set on suppress rule")
Signed-off-by: David Ahern <dsahern@gmail.com>
Cc: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/fib_tests.sh