selftests: Update fib_tests to handle missing ping6
authorDavid Ahern <dsahern@gmail.com>
Tue, 17 Sep 2019 17:30:21 +0000 (10:30 -0700)
committerJakub Kicinski <jakub.kicinski@netronome.com>
Sat, 21 Sep 2019 01:13:32 +0000 (18:13 -0700)
commit0360894a05ed52be268e3c4d40b2df9d94975fa6
tree7c0393825e52ef1b984427593ed6b30562b9b2ea
parent9e5c8d39b88c15f4ec3ab24a73e09c112f209344
selftests: Update fib_tests to handle missing ping6

Some distributions (e.g., debian buster) do not install ping6. Re-use
the hook in pmtu.sh to detect this and fallback to ping.

Fixes: a0e11da78f48 ("fib_tests: Add tests for metrics on routes")
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
tools/testing/selftests/net/fib_tests.sh