From 35f0e18bd7f443efc08050630a548ef6f9ee8567 Mon Sep 17 00:00:00 2001 From: Jinshan Xiong Date: Mon, 11 Feb 2013 12:55:52 -0800 Subject: [PATCH] LU-2776 tests: sleep longer time to yield CPU It used to be 0.1 seconds and turned out too less. Signed-off-by: Jinshan Xiong Change-Id: I2776d8387aee8a55f325459999c8c9454dd2b4fa Reviewed-on: http://review.whamcloud.com/5321 Tested-by: Hudson Reviewed-by: Andreas Dilger Tested-by: Maloo Reviewed-by: Oleg Drokin --- lustre/tests/sanityn.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lustre/tests/sanityn.sh b/lustre/tests/sanityn.sh index 7b91df3..d40429c 100644 --- a/lustre/tests/sanityn.sh +++ b/lustre/tests/sanityn.sh @@ -2286,7 +2286,7 @@ test_51a() { # open and sleep 2 seconds then read $MULTIOP $DIR2/$tfile o_2r${filesize}c & local pid=$! - sleep 0.1 + sleep 1 # create the layout of testing file dd if=$origfile of=$DIR1/$tfile conv=notrunc > /dev/null @@ -2311,7 +2311,7 @@ test_51b() { $LCTL set_param fail_loc=0x1404 stat -c %s $DIR2/$tfile |tee $tmpfile & local pid=$! - sleep 0.1 + sleep 1 # create layout of testing file dd if=/dev/zero of=$DIR1/$tfile bs=1k count=1 conv=notrunc > /dev/null @@ -2336,7 +2336,7 @@ test_51c() { echo "Setting layout ..." $LFS setstripe -c $OSTCOUNT $DIR1/$tfile & pid=$! - sleep 0.1 + sleep 1 # get layout of this file should wait until dd is finished local stripecnt=`$LFS getstripe -c $DIR2/$tfile` -- 1.8.3.1