X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fracer.sh;h=8d75c2c19367ba3bed725c92af253f92d0a5932b;hb=46021d556b67557d545e01522c41b9fad20120e1;hp=66596ae37b184cab6adb4b4b46e8cc53a3f2eafe;hpb=dc64eb8e2f3e8e9abbaab2762babcdd5c8446c4c;p=fs%2Flustre-release.git diff --git a/lustre/tests/racer.sh b/lustre/tests/racer.sh index 66596ae..8d75c2c 100644 --- a/lustre/tests/racer.sh +++ b/lustre/tests/racer.sh @@ -12,21 +12,24 @@ init_logging racer=$LUSTRE/tests/racer/racer.sh echo racer: $racer +DURATION=${DURATION:-900} +[ "$SLOW" = "no" ] && DURATION=300 +MOUNT_2=${MOUNT_2:-"yes"} + +build_test_filter +check_and_setup_lustre + CLIENTS=${CLIENTS:-$HOSTNAME} -RACERDIRS=${RACERDIRS:-$DIR} +RACERDIRS=${RACERDIRS:-"$DIR $DIR2"} echo RACERDIRS=$RACERDIRS for d in ${RACERDIRS}; do + is_mounted $d || continue + RDIRS="$RDIRS $d/racer" mkdir -p $d/racer # lfs setstripe $d/racer -c -1 done -DURATION=${DURATION:-900} -[ "$SLOW" = "no" ] && DURATION=300 - -build_test_filter -check_and_setup_lustre - # run racer test_1() { local rrc=0 @@ -57,6 +60,6 @@ test_1() { } run_test 1 "racer on clients: ${CLIENTS:-$(hostname)} DURATION=$DURATION" -complete $(basename $0) $SECONDS +complete $SECONDS check_and_cleanup_lustre exit_status