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 <lczerner@redhat.com>
Reviewed-by: Chandra Seetharaman <sekharan@us.ibm.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
This commit is contained in:
Lukas Czerner
2013-07-11 10:38:01 +00:00
committed by Rich Johnston
parent dcaf866187
commit 9fe92ade36
2 changed files with 5 additions and 1 deletions
-1
View File
@@ -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()
{
+5
View File
@@ -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"