From d7c5b3cf2d6b57e928d33e4355fbcfddb67720a1 Mon Sep 17 00:00:00 2001
From: grev <grev>
Date: Wed, 27 Aug 2008 19:33:22 +0000
Subject: [PATCH] b=16209 i=Adilger i=Robert.Read test_14 fix: use multiop
 instead of exec

---
 lustre/tests/sanityN.sh | 13 ++++++++-----
 1 file changed, 8 insertions(+), 5 deletions(-)

diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh
index 16c1e14839..2d2b1b434f 100644
--- a/lustre/tests/sanityN.sh
+++ b/lustre/tests/sanityN.sh
@@ -254,11 +254,14 @@ test_13() {	# bug 2451 - directory coherency
 run_test 13 "test directory page revocation ===================="
 
 test_14() {
-	mkdir $DIR1/d14
-	cp -p /bin/ls $DIR1/d14/ls
-	exec 100>> $DIR1/d14/ls
-	$DIR2/d14/ls && error || true
-	exec 100<&-
+	mkdir -p $DIR1/$tdir
+	cp -p /bin/ls $DIR1/$tdir/$tfile
+	multiop_bg_pause $DIR1/$tdir/$tfile Ow_c || return 1
+	MULTIPID=$!
+
+	$DIR2/$tdir/$tfile && error || true
+	kill -USR1 $MULTIPID
+	wait $MULTIPID || return 2
 }
 run_test 14 "execution of file open for write returns -ETXTBSY ="
 
-- 
GitLab