[LTP] [PATCH v2 2/3] nfs_lib.sh: Add support for test-specific parameters
Petr Vorel
pvorel@suse.cz
Tue Nov 23 20:29:08 CET 2021
Hi Martin,
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
> ---
> Changes since v1: None
Reviewed-by: Petr Vorel <pvorel@suse.cz>
Kind regards,
Petr
> testcases/network/nfs/nfs_stress/nfs_lib.sh | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
> diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh
> index 790655643..b01215136 100644
> --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh
> +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh
> @@ -19,10 +19,12 @@ nfs_parse_args()
> case "$1" in
> v) VERSION="$(echo $2 | tr ',' ' ')";;
> t) SOCKET_TYPE="$(echo $2 | tr ',' ' ')";;
> + *) [ "$NFS_PARSE_ARGS_CALLER" ] && $NFS_PARSE_ARGS_CALLER "$@";;
> esac
> }
> -TST_OPTS="v:t:"
> +NFS_PARSE_ARGS_CALLER="$TST_PARSE_ARGS"
> +TST_OPTS="v:t:$TST_OPTS"
> TST_PARSE_ARGS=nfs_parse_args
> TST_USAGE=nfs_usage
> TST_NEEDS_TMPDIR=1
More information about the ltp
mailing list