Skip to contentSkip to conversation

Fix incorrect tst_brk usage in nfslock01.sh

PATCH In review Martin Doucha 2 participants 2 messages Jan 22, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix incorrect tst_brk usage in nfslock01.sh

---

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(-)
testcases/network/nfs/nfslock01/nfslock01.sh +2 -1
index 01d59ce85..1f8c2d755 100755
@@ -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
Signature · 5 lines
2.42.1


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp
#1 lore raw

Hi Martin,

Quoted 3 lines

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.

Thanks a lot for a fix, merged!

Kind regards,
Petr

Signature · 1 line
Mailing list info: https://lists.linux.it/listinfo/ltp