mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-28 13:22:57 +00:00
selftests: forwarding: Set default IPv6 traceroute utility
commit38f7c44d6e
upstream. The test uses the 'TROUTE6' environment variable to encode the name of the IPv6 traceroute utility. By default (without a configuration file), this variable is not set, resulting in failures: # ./ip6_forward_instats_vrf.sh TEST: ping6 [ OK ] TEST: Ip6InTooBigErrors [ OK ] TEST: Ip6InHdrErrors [FAIL] TEST: Ip6InAddrErrors [ OK ] TEST: Ip6InDiscards [ OK ] Fix by setting a default utility name and skip the test if the utility is not present. Fixes:0857d6f8c7
("ipv6: When forwarding count rx stats on the orig netdev") Reported-by: Mirsad Todorovac <mirsad.todorovac@alu.unizg.hr> Closes: https://lore.kernel.org/netdev/adc5e40d-d040-a65e-eb26-edf47dac5b02@alu.unizg.hr/ Signed-off-by: Ido Schimmel <idosch@nvidia.com> Reviewed-by: Petr Machata <petrm@nvidia.com> Tested-by: Mirsad Todorovac <mirsad.todorovac@alu.unizg.hr> Reviewed-by: Hangbin Liu <liuhangbin@gmail.com> Acked-by: Nikolay Aleksandrov <razor@blackwall.org> Link: https://lore.kernel.org/r/20230808141503.4060661-6-idosch@nvidia.com Signed-off-by: Jakub Kicinski <kuba@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d48663156f
commit
c0e1eebfe9
2 changed files with 3 additions and 0 deletions
|
@ -14,6 +14,8 @@ ALL_TESTS="
|
||||||
NUM_NETIFS=4
|
NUM_NETIFS=4
|
||||||
source lib.sh
|
source lib.sh
|
||||||
|
|
||||||
|
require_command $TROUTE6
|
||||||
|
|
||||||
h1_create()
|
h1_create()
|
||||||
{
|
{
|
||||||
simple_if_init $h1 2001:1:1::2/64
|
simple_if_init $h1 2001:1:1::2/64
|
||||||
|
|
|
@ -30,6 +30,7 @@ REQUIRE_MZ=${REQUIRE_MZ:=yes}
|
||||||
REQUIRE_MTOOLS=${REQUIRE_MTOOLS:=no}
|
REQUIRE_MTOOLS=${REQUIRE_MTOOLS:=no}
|
||||||
STABLE_MAC_ADDRS=${STABLE_MAC_ADDRS:=no}
|
STABLE_MAC_ADDRS=${STABLE_MAC_ADDRS:=no}
|
||||||
TCPDUMP_EXTRA_FLAGS=${TCPDUMP_EXTRA_FLAGS:=}
|
TCPDUMP_EXTRA_FLAGS=${TCPDUMP_EXTRA_FLAGS:=}
|
||||||
|
TROUTE6=${TROUTE6:=traceroute6}
|
||||||
|
|
||||||
relative_path="${BASH_SOURCE%/*}"
|
relative_path="${BASH_SOURCE%/*}"
|
||||||
if [[ "$relative_path" == "${BASH_SOURCE}" ]]; then
|
if [[ "$relative_path" == "${BASH_SOURCE}" ]]; then
|
||||||
|
|
Loading…
Reference in a new issue