[LTP] [PATCH 3/3] nfs_lib.sh: Fail the test if NFS unmount fails
Richard Palethorpe
rpalethorpe@suse.de
Wed Sep 20 13:27:38 CEST 2023
Reviewed-by: Richard Palethorpe <rpalethorpe@suse.com>
Martin Doucha <mdoucha@suse.cz> writes:
> Signed-off-by: Martin Doucha <mdoucha@suse.cz>
> ---
> testcases/network/nfs/nfs_stress/nfs_lib.sh | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/testcases/network/nfs/nfs_stress/nfs_lib.sh b/testcases/network/nfs/nfs_stress/nfs_lib.sh
> index a996f7cc8..099c78759 100644
> --- a/testcases/network/nfs/nfs_stress/nfs_lib.sh
> +++ b/testcases/network/nfs/nfs_stress/nfs_lib.sh
> @@ -214,7 +214,7 @@ nfs_cleanup()
> local_dir="$(get_local_dir $i $n)"
> if grep -q "$local_dir" /proc/mounts; then
> tst_res TINFO "Unmounting $local_dir"
> - umount $local_dir
> + umount $local_dir || tst_res TFAIL "Unmount failed"
> fi
> n=$(( n + 1 ))
> done
> --
> 2.42.0
--
Thank you,
Richard.
More information about the ltp
mailing list