[LTP] [PATCH v6] mpls01: Add --allow-unsupported for modprobe(fixing all mpls cases)

Petr Vorel pvorel@suse.cz
Thu Sep 5 07:12:59 CEST 2024


Hi Wei,

...
> +mpls_setup_driver()
> +{
> +	local args
> +
> +	grep -q 'sl-micro' /etc/os-release && args='--allow-unsupported'

I'm going to merge in few hours with following change

-       grep -q 'sl-micro' /etc/os-release && args='--allow-unsupported'
+       grep -q -w ID_LIKE.*suse /etc/os-release && args='--allow-unsupported'

(to implement Cyril's wish to apply the change also for SLES and openSUSE. I'm
sorry although I suggested that in v4, then in the full example I in the end
used 'sl-micro'.


Kind regards,
Petr

> +	if [ "$TST_NEEDS_DRIVERS" ]; then
> +		tst_net_run -s "modprobe $args -a $TST_NEEDS_DRIVERS"
> +	fi
> +}
> +
>  mpls_setup()
>  {
>  	local label="$1"
...


More information about the ltp mailing list