[LTP] [PATCH 2/2] network/nfs06: rewrite the test and change test-cases

Cyril Hrubis chrubis@suse.cz
Mon Sep 19 14:00:28 CEST 2016


Hi!
> +TCID=nfs06
> +TST_TOTAL=1
> +TST_CLEANUP="nfs_cleanup"
> +
> +. nfs_lib.sh
> +. test_net.sh
> +
> +do_test()
> +{
> +	tst_resm TINFO "Starting fsstress processes on NFS mounts"
> +
> +	local n=0
> +	local pids
> +	for i in $VERSION; do
> +		fsstress -l 1 -d $TST_TMPDIR/$i/$n -n 1000 -p 50 -r -c > /dev/null &
> +		pids="$pids $!"
> +		n=$(( n + 1 ))
> +	done
> +
> +	tst_resm TINFO "waiting for pids:$pids"
> +	for p in $pids; do
> +		wait $p
> +		if [ $? -ne 0 ]; then
> +			kill -9 $pids
> +			tst_brkm TFAIL "fsstress process failed"
> +		else
> +			tst_resm TINFO "fsstress '$p' completed"
> +		fi
> +	done
> +
> +	tst_resm TPASS "all fsstress processes completed on '$n' NFS mounts"
> +}
> +
> +tst_check_cmds sar

Do we still need this check?

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list