xfstests: Allow to specify RESULT_BASE directory
authorLukas Czerner <lczerner@redhat.com>
Thu, 11 Jul 2013 10:38:01 +0000 (10:38 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 16 Aug 2013 14:27:55 +0000 (09:27 -0500)
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>
check
common/config

diff --git a/check b/check
index 4085eae86877f72536d87f0b70945f101d3d8ad7..64e9865bfd84ed895bff0c05469f3849e0b2f18e 100755 (executable)
--- 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()
 {
index 34c99e1255936d86b8e2f563578367e2364f640e..39dd4697c058623b07c82844bc047bd31545bc96 100644 (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"