From: walter Date: Wed, 28 Nov 2007 18:36:20 +0000 (+0000) Subject: b=14286 X-Git-Tag: v1_7_0_51~453 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=1012a68c58835d6bd59e24a3b4999da2607c925a b=14286 i=grev i=adilger branch=HEAD change the rundbench script to use contents of DBENCH_LIB variable to find the location of the dbench executable (like sanity.sh and sanity_quota.sh do) so that we use the same environment variables to specify the location of the dbench executable in all the test scripts. instead of using different environment variables to configure the same thing in different scripts. --- diff --git a/lustre/tests/rundbench b/lustre/tests/rundbench index e2fc0bf..f31be70 100755 --- a/lustre/tests/rundbench +++ b/lustre/tests/rundbench @@ -4,7 +4,8 @@ DIR=${DIR:-$MOUNT/`hostname`} #[ -e /proc/sys/lnet/debug ] && echo 0 > /proc/sys/lnet/debug mkdir -p $DIR TGT=$DIR/client.txt -SRC=${SRC:-/usr/share/dbench/client.txt} +DBENCH_LIB=${DBENCH_LIB:-/usr/share/dbench} +SRC=${SRC:-$DBENCH_LIB/client.txt} [ ! -s $TGT -a -s $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT SRC=${SRC:-/usr/lib/dbench/client.txt} [ ! -s $TGT -a -s $SRC ] && echo "copying $SRC to $TGT" && cp $SRC $TGT