From d25b3a4a9595b3b8473d3ac9ccbc2d85ee2e1fbe Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 13 Aug 2008 13:08:28 +0000 Subject: [PATCH] b=16637 i=Alexey.Lyashkov test_8 fix: use rundbench instead of dbench --- lustre/tests/sanity-quota.sh | 24 ++++-------------------- 1 file changed, 4 insertions(+), 20 deletions(-) diff --git a/lustre/tests/sanity-quota.sh b/lustre/tests/sanity-quota.sh index c30572f..a88baea 100644 --- a/lustre/tests/sanity-quota.sh +++ b/lustre/tests/sanity-quota.sh @@ -615,38 +615,22 @@ test_8() { mkdir -p $DIR/$tdir BLK_LIMIT=$((100 * 1024 * 1024)) # 100G FILE_LIMIT=1000000 - DBENCH_LIB=${DBENCH_LIB:-/usr/lib/dbench} - - [ ! -d $DBENCH_LIB ] && skip "dbench not installed" && return 0 wait_delete_completed - + echo " Set enough high limit for user: $TSTUSR" $LFS setquota -u $TSTUSR 0 $BLK_LIMIT 0 $FILE_LIMIT $DIR echo " Set enough high limit for group: $TSTUSR" $LFS setquota -g $USER 0 $BLK_LIMIT 0 $FILE_LIMIT $DIR - TGT=$DIR/$tdir/client.txt - SRC=${SRC:-$DBENCH_LIB/client.txt} - [ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT - SRC=$DBENCH_LIB/client_plain.txt - [ ! -e $TGT -a -e $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT - - mkdir -p $DIR/$tdir chmod 0777 $DIR/$tdir - SAVE_PWD=$PWD - cd $DIR/$tdir local duration="" [ "$SLOW" = "no" ] && duration=" -t 120" - $RUNAS dbench -c client.txt 3 $duration - RC=$? - [ $RC -ne 0 ] && killall -9 dbench - - rm -f client.txt + $RUNAS bash rundbench -D $DIR/$tdir 3 $duration || error "dbench failed!" + sync; sleep 3; sync; - cd $SAVE_PWD - return $RC + return 0 } run_test 8 "Run dbench with quota enabled ===========" -- 1.8.3.1