aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorDavid Ahern <dsahern@gmail.com>2019-04-09 14:23:10 -0700
committerDavid S. Miller <davem@davemloft.net>2019-04-11 14:17:59 -0700
commita5f622984a623df9a84cf43f6b098d8dd76fbe05 (patch)
treefdfb94880859dc7af51dda31335841e7a6620956 /net
parentnet: netrom: Fix error cleanup path of nr_proto_init (diff)
downloadlinux-dev-a5f622984a623df9a84cf43f6b098d8dd76fbe05.tar.xz
linux-dev-a5f622984a623df9a84cf43f6b098d8dd76fbe05.zip
selftests: fib_tests: Fix 'Command line is not complete' errors
A couple of tests are verifying a route has been removed. The helper expects the prefix as the first part of the expected output. When checking that a route has been deleted the prefix is empty leading to an invalid ip command: $ ip ro ls match Command line is not complete. Try option "help" Fix by moving the comparison of expected output and output to a new function that is used by both check_route and check_route6. Use the new helper for the 2 checks on route removal. Also, remove the reset of 'set -x' in route_setup which overrides the user managed setting. Fixes: d69faad76584c ("selftests: fib_tests: Add prefix route tests with metric") Signed-off-by: David Ahern <dsahern@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions