From 63ad3dc071f1b027c317318afe5dd2d571201b85 Mon Sep 17 00:00:00 2001 From: grev Date: Wed, 24 Dec 2008 21:22:43 +0000 Subject: [PATCH] b=17839 i=Brian remote rundbench run fix --- lustre/tests/replay-single.sh | 5 ++++- lustre/tests/rundbench | 10 +++++++--- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/lustre/tests/replay-single.sh b/lustre/tests/replay-single.sh index ddfc495..418aaf1 100755 --- a/lustre/tests/replay-single.sh +++ b/lustre/tests/replay-single.sh @@ -1699,7 +1699,10 @@ test_70b () { [ "$SLOW" = "no" ] && duration=60 local cmd="rundbench 1 -t $duration" local PID="" - do_nodes $CLIENTS "set -x; PATH=:$PATH:$LUSTRE/utils:$LUSTRE/tests/:$DBENCH_LIB DBENCH_LIB=$DBENCH_LIB $cmd" & + do_nodes $CLIENTS "set -x; MISSING_DBENCH_OK=$MISSING_DBENCH_OK \ + PATH=:$PATH:$LUSTRE/utils:$LUSTRE/tests/:$DBENCH_LIB \ + DBENCH_LIB=$DBENCH_LIB TESTSUITE=$TESTSUITE TESTNAME=$TESTNAME \ + LCTL=$LCTL $cmd" & PID=$! log "Started rundbench load PID=$PID ..." diff --git a/lustre/tests/rundbench b/lustre/tests/rundbench index fb21863..92d79ba 100755 --- a/lustre/tests/rundbench +++ b/lustre/tests/rundbench @@ -27,7 +27,11 @@ mkdir -p $DIR TGT=$DIR/client.txt CLIENT_PREFIX="${DBENCH_LIB} /usr/share/dbench /usr/local/share /usr/lib/dbench" CLIENT_FILE="client.txt client_plain.txt dbench_client" -which dbench > /dev/null 2>&1 || { skip "$0: dbench not installed" && exit 0; } +if ! which dbench > /dev/null 2>&1 ; then + [ "$MISSING_DBENCH_OK" ] || { error "$0 : $(hostname) dbench is not installed !" && exit 3; } + skip "$0 : $(hostname) dbench is not installed" + exit 0 +fi CLIENT="" for prefix in $CLIENT_PREFIX; do @@ -45,12 +49,12 @@ if [ -n "$SRC" -a -s "$SRC" ]; then fi [ ! -s "$CLIENT" ] && \ - skip "$0: no client file found for dbench DBENCH_LIB=$DBENCH_LIB SRC=$SRC" && \ + skip "$0 : $(hostname) no client file found for dbench DBENCH_LIB=$DBENCH_LIB SRC=$SRC" && \ exit 0 [ ! -s "$TGT" ] && echo "copying $CLIENT to $TGT" && cp $CLIENT $TGT [ ! -s "$TGT" ] && \ - echo "$0: $TGT file doesn't exist after cp $CLIENT $TGT" && exit 1 + echo "$0 : $(hostname) $TGT file doesn't exist after cp $CLIENT $TGT" && exit 1 if [ "x$CHROOT" == "xyes" ]; then echo "copying necessary libs to $DIR" -- 1.8.3.1