X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftests%2Fsanity.sh;h=6b2080f8943c498ec324232fc666f3d9e78e7155;hp=ac0386fe3523213b61489db8caed99247cfc1f10;hb=862106ec8724c1dc7f58a743cdde543dfda171b0;hpb=be9646971dc400f6123c803f87cf09a31bb40710 diff --git a/lustre/tests/sanity.sh b/lustre/tests/sanity.sh index ac0386f..6b2080f 100644 --- a/lustre/tests/sanity.sh +++ b/lustre/tests/sanity.sh @@ -1887,9 +1887,13 @@ run_test 42d "test complete truncate of file with cached dirty data" test_43() { cp -p /bin/ls $DIR/$tdir/$tfile - exec 9>> $DIR/$tdir/$tfile + multiop $DIR/$tdir/$tfile Ow_c & + pid=$! + # give multiop a chance to open + sleep 1 + $DIR/$tdir/$tfile && error || true - exec 9<&- + kill -USR1 $pid } run_test 43 "execution of file opened for write should return -ETXTBSY"