From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cuda.sgi.com (cuda2.sgi.com [192.48.176.25]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id n67AX3BY138982 for ; Tue, 7 Jul 2009 05:33:04 -0500 Received: from bombadil.infradead.org (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id 465FD3483EC for ; Tue, 7 Jul 2009 03:33:39 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org [18.85.46.34]) by cuda.sgi.com with ESMTP id 9bgBC1toEFJtHpLV for ; Tue, 07 Jul 2009 03:33:39 -0700 (PDT) Received: from hch by bombadil.infradead.org with local (Exim 4.69 #1 (Red Hat Linux)) id 1MO7zX-0005aq-02 for xfs@oss.sgi.com; Tue, 07 Jul 2009 10:33:39 +0000 Date: Tue, 7 Jul 2009 06:33:38 -0400 From: Christoph Hellwig Subject: Re: [PATCH] xfstests: small common.config cleanup Message-ID: <20090707103338.GC20410@infradead.org> References: <20090620173818.GA26809@infradead.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20090620173818.GA26809@infradead.org> List-Id: XFS Filesystem from SGI List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xfs-bounces@oss.sgi.com Errors-To: xfs-bounces@oss.sgi.com To: xfs@oss.sgi.com ping? On Sat, Jun 20, 2009 at 01:38:18PM -0400, Christoph Hellwig wrote: > Don't list various non-mandatory options near the check for the > mandatory ones, and make the test for the mandatory ones a proper if > statements. > > > Signed-off-by: Christoph Hellwig > > Index: xfstests-dev/common.config > =================================================================== > --- xfstests-dev.orig/common.config 2009-06-20 19:15:14.576805079 +0200 > +++ xfstests-dev/common.config 2009-06-20 19:16:48.956930262 +0200 > @@ -191,27 +191,18 @@ known_hosts() > [ -f $HOST_CONFIG_DIR/$HOST ] && . $HOST_CONFIG_DIR/$HOST > [ -f $HOST_CONFIG_DIR/$HOST.config ] && . $HOST_CONFIG_DIR/$HOST.config > > + # Mandatory Config values. > MC="" > -# Non-Mandatory Config values. > -# [ -z "$MODULAR" ] && MC="$MC MODULAR" > -# [ -z "$TEST_LOGDEV" ] && MC="$MC TEST_LOGDEV" > -# [ -z "$SCRATCH_LOGDEV" ] && MC="$MC SCRATCH_LOGDEV" > -# [ -z "$SCRATCH_RTDEV" ] && MC="$MC SCRATCH_RTDEV" > -# [ -z "$SCRATCH_MNT" ] && MC="$MC SCRATCH_MNT" > -# [ -z "$SCRATCH_DEV" ] && MC="$MC SCRATCH_DEV" > - > [ -z "$EMAIL" ] && MC="$MC EMAIL" > [ -z "$TEST_DIR" ] && MC="$MC TEST_DIR" > [ -z "$TEST_DEV" ] && MC="$MC TEST_DEV" > > - [ "$MC" ] && (echo "Warning: need to define parameters for host $HOST";\ > - echo " or set variables:"; \ > - echo " $MC") > -# if [ -e configs/$HOST.config ] > -# then echo "Not carring, we have a configfile ($HOST_CONFIG_DIR/$HOST)" > -# else > - [ "$MC" ] && exit 1 > -# fi > + if [ -n "$MC" ]; then > + echo "Warning: need to define parameters for host $HOST" > + echo " or set variables:" > + echo " $MC" > + exit 1 > + fi > } > > if [ -f "$HOST_OPTIONS" ]; then > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs ---end quoted text--- _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs