]> asedeno.scripts.mit.edu Git - linux.git/commit
selftest: A few cleanups for fib_nexthops.sh
authorDavid Ahern <dsahern@gmail.com>
Tue, 3 Sep 2019 22:22:13 +0000 (15:22 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 5 Sep 2019 09:59:39 +0000 (11:59 +0200)
commit91bfb564853f4aaa0487a2b5e9c6ecd400768abd
tree33bda1df3257186223142c1cf521fa3ab257e1e1
parent4255ff0544ee307e9a8acf66000e6fd49e9203f8
selftest: A few cleanups for fib_nexthops.sh

Cleanups of the tests in fib_nexthops.sh
1. Several tests noted unexpected route output, but the
   discrepancy was not showing in the summary output and
   overlooked in the verbose output. Add a WARNING message
   to the summary output to make it clear a test is not showing
   expected output.

2. Several check_* calls are missing extra data like scope and metric
   causing mismatches when the nexthops or routes are correct - some of
   them are a side effect of the evolving iproute2 command. Update the
   data to the expected output.

3. Several check_routes are checking for the wrong nexthop data,
   most likely a copy-paste-update error.

4. A couple of tests were re-using a nexthop id that already existed.
   Fix those to use a new id.

Fixes: 6345266a9989 ("selftests: Add test cases for nexthop objects")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/net/fib_nexthops.sh