X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Ftests%2Ffunctions.sh;h=84916b0e0b903aa43d3462068db79c7e6e4e2c7c;hb=5245b94a4aed1c4dcfa8b394acf916ea7accf138;hp=e49ca5de6c70712a47f10e52bad0c91c94294cf4;hpb=fb14b7bc37c613482bea672ec11dbd98633ddce3;p=fs%2Flustre-release.git diff --git a/lustre/tests/functions.sh b/lustre/tests/functions.sh index e49ca5d..84916b0 100644 --- a/lustre/tests/functions.sh +++ b/lustre/tests/functions.sh @@ -289,6 +289,8 @@ run_compilebench() { # compile dir kernel-0 ~1GB # required space ~1GB * cbench_IDIRS + local dir=${1:-$DIR} + cbench_DIR=${cbench_DIR:-""} cbench_IDIRS=${cbench_IDIRS:-2} cbench_RUNS=${cbench_RUNS:-2} @@ -301,7 +303,7 @@ run_compilebench() { [ -e $cbench_DIR/compilebench ] || \ { skip_env "No compilebench build" && return; } - local space=$(df -P $DIR | tail -n 1 | awk '{ print $4 }') + local space=$(df -P $dir | tail -n 1 | awk '{ print $4 }') if [[ $space -le $((1024 * 1024 * cbench_IDIRS)) ]]; then cbench_IDIRS=$((space / 1024 / 1024)) [[ $cbench_IDIRS -eq 0 ]] && @@ -315,7 +317,7 @@ run_compilebench() { # t-f _base needs to be modifyed to set properly tdir # for new "test_foo" functions names # local testdir=$DIR/$tdir - local testdir=$DIR/d0.compilebench + local testdir=$dir/d0.compilebench mkdir -p $testdir local savePWD=$PWD