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

Alexey Kodanev aleksei.kodanev@bell-sw.com
Fri Jul 30 09:50:18 CEST 2021


On 30.07.2021 10:08, Petr Vorel wrote:
> 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>

Thanks Radoslav, Petr!

Reviewed-by: Alexey Kodanev <aleksei.kodanev@bell-sw.com>


More information about the ltp mailing list