]> www.infradead.org Git - users/dwmw2/linux.git/commit
selftests: Update fib_tests to handle missing ping6
authorDavid Ahern <dsahern@gmail.com>
Tue, 17 Sep 2019 17:30:21 +0000 (10:30 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:17 +0000 (13:13 +0200)
commit0102608d70f0eacaca6d341b9e16491d77efd21d
treef77c1649eaac0aaf0ed012b220c5ffd85577c861
parentda0d6e47c20d84b6156473461a0d3680ba6b4f9f
selftests: Update fib_tests to handle missing ping6

[ Upstream commit 0360894a05ed52be268e3c4d40b2df9d94975fa6 ]

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/testing/selftests/net/fib_tests.sh