From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay2.corp.sgi.com [137.38.102.29]) by oss.sgi.com (Postfix) with ESMTP id E5E8D7F5D for ; Thu, 11 Jul 2013 05:38:19 -0500 (CDT) Received: from cuda.sgi.com (cuda1.sgi.com [192.48.157.11]) by relay2.corp.sgi.com (Postfix) with ESMTP id BAD32304081 for ; Thu, 11 Jul 2013 03:38:19 -0700 (PDT) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by cuda.sgi.com with ESMTP id Ru7I5RXeiM4LJBtz for ; Thu, 11 Jul 2013 03:38:18 -0700 (PDT) Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r6BAcISD028966 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 11 Jul 2013 06:38:18 -0400 From: Lukas Czerner Subject: [PATCH 06/10 v2] xfstests: Allow to specify RESULT_BASE directory Date: Thu, 11 Jul 2013 12:38:01 +0200 Message-Id: <1373539085-8577-7-git-send-email-lczerner@redhat.com> In-Reply-To: <1373539085-8577-1-git-send-email-lczerner@redhat.com> References: <1373539085-8577-1-git-send-email-lczerner@redhat.com> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: xfs-bounces@oss.sgi.com Sender: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com Cc: lczerner@redhat.com 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 --- check | 1 - common/config | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/check b/check index dc972d7..428eba1 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 34c99e1..39dd469 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" -- 1.8.3.1 _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs