Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-13019 tests: replace usleep in test scripts
[fs/lustre-release.git]
/
lustre
/
tests
/
mdsrate-stat-small.sh
diff --git
a/lustre/tests/mdsrate-stat-small.sh
b/lustre/tests/mdsrate-stat-small.sh
index
e10b5a8
..
062061e
100644
(file)
--- a/
lustre/tests/mdsrate-stat-small.sh
+++ b/
lustre/tests/mdsrate-stat-small.sh
@@
-10,14
+10,12
@@
# will be run from a single node for #1 and from all nodes for #2
# aggregate test to measure stat performance.
# will be run from a single node for #1 and from all nodes for #2
# aggregate test to measure stat performance.
-LUSTRE=${LUSTRE:-
`dirname $0`
/..}
+LUSTRE=${LUSTRE:-
$(dirname $0)
/..}
. $LUSTRE/tests/test-framework.sh
init_test_env $@
. $LUSTRE/tests/test-framework.sh
init_test_env $@
-. ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
assert_env CLIENTS MDSRATE SINGLECLIENT MPIRUN
-MACHINEFILE=${MACHINEFILE:-$TMP/$(basename $0 .sh).machines}
# Do not use name [df][0-9]* to avoid cleanup by rm, bug 18045
BASEDIR=$MOUNT/mdsrate
TESTDIR=$BASEDIR/stat
# Do not use name [df][0-9]* to avoid cleanup by rm, bug 18045
BASEDIR=$MOUNT/mdsrate
TESTDIR=$BASEDIR/stat
@@
-41,8
+39,8
@@
check_and_setup_lustre
mkdir -p $BASEDIR
chmod 0777 $BASEDIR
mkdir -p $BASEDIR
chmod 0777 $BASEDIR
-$LFS setstripe $BASEDIR -i 0 -c 1
-get_stripe $BASEDIR
+mdsrate_STRIPEPARAMS=${mdsrate_STRIPEPARAMS:-${fs_STRIPEPARAMS:-"-i 0 -c 1"}}
+setstripe_getstripe $BASEDIR $mdsrate_STRIPEPARAMS
IFree=$(mdsrate_inodes_available)
if [ $IFree -lt $NUM_FILES ]; then
IFree=$(mdsrate_inodes_available)
if [ $IFree -lt $NUM_FILES ]; then