[LTP] [PATCH v2] ipsec_lib.sh: check ip_vti/ip6_vti are enabled or skip tests

Petr Vorel pvorel@suse.cz
Fri Jul 30 09:08:31 CEST 2021


Hi Radoslav,

...
> +	if [ "$TST_IPV6" ]; then
> +                tst_net_run -q "tst_check_drivers ip6_vti" || \
> +                        tst_brk TCONF "ip6_vti driver not available on lhost or rhost"
> +        else
> +                tst_net_run -q "tst_check_drivers ip_vti" || \
> +                        tst_brk TCONF "ip_vti driver not available on lhost or rhost"
> +        fi
nit: broken indentation, but that'll be fix during merge.

LGTM, but I'm going to merge shorter version (we have $TST_IPV6 for this
purpose).

tst_net_run -q "tst_check_drivers ip${TST_IPV6}_vti" || \
	tst_brk TCONF "ip${TST_IPV6}_vti driver not available on lhost or rhost"

Reviewed-by: Petr Vorel <pvorel@suse.cz>

Kind regards,
Petr


More information about the ltp mailing list