Whamcloud - gitweb
b=16209
authorgrev <grev>
Wed, 27 Aug 2008 19:28:19 +0000 (19:28 +0000)
committergrev <grev>
Wed, 27 Aug 2008 19:28:19 +0000 (19:28 +0000)
i=Adilger
i=Robert.Read
test_14 fix: use multiop instead of exec

lustre/tests/sanityN.sh

index f13b1e1..3edb02f 100644 (file)
@@ -258,11 +258,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 ="