[LTP] [PATCH] Fix incorrect tst_brk usage in nfslock01.sh

Martin Doucha mdoucha@suse.cz
Mon Jan 22 13:25:17 CET 2024


Signed-off-by: Martin Doucha <mdoucha@suse.cz>
---

In the previous release, the nfs_lock process failure would skip any
remaining filesystems. After this change, the single filesystem test run
will exit but all remeaining filesystems will be tested.

 testcases/network/nfs/nfslock01/nfslock01.sh | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/testcases/network/nfs/nfslock01/nfslock01.sh b/testcases/network/nfs/nfslock01/nfslock01.sh
index 01d59ce85..1f8c2d755 100755
--- a/testcases/network/nfs/nfslock01/nfslock01.sh
+++ b/testcases/network/nfs/nfslock01/nfslock01.sh
@@ -68,7 +68,8 @@ do_test()
 	for p in $pids; do
 		wait $p
 		if [ $? -ne 0 ]; then
-			tst_brk TFAIL "nfs_lock process failed"
+			tst_res TFAIL "nfs_lock process failed"
+			return
 		else
 			tst_res TINFO "$p completed"
 		fi
-- 
2.42.1



More information about the ltp mailing list