X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Fsanity-benchmark.sh;h=2e9f7349de6de760505ebf66e36ba465b05adee8;hb=94bf32e0eee947dba897a17abe58eee4f1d0d4d6;hp=e3dd8e6fb2f16158bc90696a9eb468f0b5e304f3;hpb=924218e5b6e320ce8ebd8720a340518cc9f8d09b;p=fs%2Flustre-release.git diff --git a/lustre/tests/sanity-benchmark.sh b/lustre/tests/sanity-benchmark.sh index e3dd8e6..2e9f734 100644 --- a/lustre/tests/sanity-benchmark.sh +++ b/lustre/tests/sanity-benchmark.sh @@ -193,9 +193,10 @@ test_fsx() { FSX_SEED=${FSX_SEED:-$RANDOM} rm -f $testfile $LFS setstripe -c -1 $testfile - echo Using FSX_SEED=$FSX_SEED FSX_SIZE=$FSX_SIZE FSX_COUNT=$FSX_COUNT - fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \ - -N $(($FSX_COUNT * 100)) $testfile + CMD="fsx -c 50 -p 1000 -S $FSX_SEED -P $TMP -l $FSX_SIZE \ + -N $((FSX_COUNT * 100)) $FSXOPT $testfile" + echo "Using: $CMD" + $CMD || error "fsx failed" rm -f $testfile $DEBUG_ON } @@ -236,7 +237,7 @@ space_check () { local stripe=$($LFS getstripe -c $testdir) # if stripe_count = 1 the size should be less than min ost size, bug 24294 - local space=$($LFS df $testdir | grep "filesystem summary:" | awk '{print $3}') + local space=$(lfs_df $testdir | grep "summary" | awk '{print $2}') [ $stripe -eq 1 ] && space=$(min_ost_size) local size=$(pios_file_size) @@ -341,6 +342,6 @@ test_pios_fpp() { } run_test pios_fpp "pios file per process" -complete $(basename $0) $SECONDS +complete $SECONDS check_and_cleanup_lustre exit_status