From: grev Date: Wed, 27 Aug 2008 19:33:22 +0000 (+0000) Subject: b=16209 X-Git-Tag: GIT_EPOCH_B_RELEASE_1_6_7~2^3~307 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=d7c5b3cf2d6b57e928d33e4355fbcfddb67720a1;p=fs%2Flustre-release.git b=16209 i=Adilger i=Robert.Read test_14 fix: use multiop instead of exec --- diff --git a/lustre/tests/sanityN.sh b/lustre/tests/sanityN.sh index 16c1e14..2d2b1b43 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 ="