Skip to content

Commit

Permalink
nfs_lib.sh: Fail the test if NFS unmount fails
Browse files Browse the repository at this point in the history
Link: https://lore.kernel.org/ltp/[email protected]/
Reviewed-by: Petr Vorel <[email protected]>
Reviewed-by: Richard Palethorpe <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
Signed-off-by: Martin Doucha <[email protected]>
[ pvorel: s/TFAIL/TWARN ]
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
mdoucha authored and pevik committed Nov 13, 2023
1 parent 246c21f commit 6dc7955
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/network/nfs/nfs_stress/nfs_lib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 TWARN "Unmount failed"
fi
n=$(( n + 1 ))
done
Expand Down

0 comments on commit 6dc7955

Please sign in to comment.