[LTP] [PATCH 1/1] net/tst_netload: TBROK when TST_NEEDS_TMPDIR not set

Petr Vorel pvorel@suse.cz
Wed May 23 10:35:09 CEST 2018


Hi,

> tst_netload function uses $TST_TMPDIR therefore requires
> TST_NEEDS_TMPDIR=1. It's better to tell user the reason, as current
> error message was a bit misleading:

> dccp_ipsec 1 TINFO: run server 'netstress -T dccp -R 500000 -B '
> netstress: option requires an argument -- 'B'

...
> +++ b/testcases/lib/tst_net.sh
> @@ -480,6 +480,10 @@ tst_netload()
>  	local s_replies="${TST_NETLOAD_MAX_SRV_REPLIES:-500000}"
>  	local s_opts=

> +	if [ ! "$TST_NEEDS_TMPDIR" = 1 ]; then
> +		tst_brk_ TBROK "Using tst_netload requires setting TST_NEEDS_TMPDIR=1"
> +	fi
> +

Pushed.


Kind regards,
Petr


More information about the ltp mailing list