From: Lukas Czerner Date: Thu, 11 Jul 2013 10:38:01 +0000 (+0000) Subject: xfstests: Allow to specify RESULT_BASE directory X-Git-Tag: v2022.05.01~3385 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=9fe92ade36a71322e15fc1a57a3edc4a94c6d2c4;p=users%2Fhch%2Fxfstests-dev.git xfstests: Allow to specify RESULT_BASE directory This commit adds the possibility to specify RESULT_BASE directory from the config file, or with environment variable. The default remains the same "$here/results/". Signed-off-by: Lukas Czerner Reviewed-by: Chandra Seetharaman Signed-off-by: Rich Johnston --- diff --git a/check b/check index 4085eae86..64e9865bf 100755 --- a/check +++ b/check @@ -66,7 +66,6 @@ export FSTYP SUPPORTED_TESTS="[0-9][0-9][0-9] [0-9][0-9][0-9][0-9]" SRC_GROUPS="generic shared" export SRC_DIR="tests" -export RESULT_BASE=${RESULT_BASE:="$here/results"} usage() { diff --git a/common/config b/common/config index 34c99e125..39dd4697c 100644 --- a/common/config +++ b/common/config @@ -230,6 +230,11 @@ if [ -f "$HOST_OPTIONS" ]; then fi get_next_config() { + # set default RESULT_BASE + if [ -z "$RESULT_BASE" ]; then + export RESULT_BASE="$here/results/" + fi + # Mandatory Config values. MC="" [ -z "$EMAIL" ] && MC="$MC EMAIL"