From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from relay.sgi.com (relay1.corp.sgi.com [137.38.102.111]) by oss.sgi.com (8.14.3/8.14.3/SuSE Linux 0.8) with ESMTP id o3GH5NIO261810 for ; Fri, 16 Apr 2010 12:05:23 -0500 Received: from cf--amer001e--3.americas.sgi.com (cf--amer001e--3.americas.sgi.com [137.38.100.5]) by relay1.corp.sgi.com (Postfix) with ESMTP id D4B468F8033 for ; Fri, 16 Apr 2010 10:07:17 -0700 (PDT) Subject: Re: xfstests: honor comments in the test group file From: Alex Elder In-Reply-To: <1267208947.2756.11.camel@doink> References: <1267208947.2756.11.camel@doink> Date: Fri, 16 Apr 2010 12:07:17 -0500 Message-ID: <1271437637.1977.16.camel@doink> Mime-Version: 1.0 Reply-To: aelder@sgi.com 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 Will someone review this for me? -Alex On Fri, 2010-02-26 at 12:29 -0600, Alex Elder wrote: > There are some spots in the "group" file where test numbers have > groups listed after a '#' character, clearly intending for those > groups to be commented out. But the way the group list gets > generated that commenting doesn't work, and in fact these tests > explicitly *are* included in such commented-out groups. > > This patch fixes that, stripping out all comments (which start with > a '#' character and end with a newline) from the file before > building the set of test numbers for a group. > > Signed-off-by: Alex Elder > > --- > common | 7 ++++--- > 1 file changed, 4 insertions(+), 3 deletions(-) > > Index: b/common > =================================================================== > --- a/common > +++ b/common > @@ -58,9 +58,10 @@ do > if $group > then > # arg after -g > - group_list=`sed -n $r /"'{ > -s/ .*//p > -}'` > + group_list=$(sed -n < group \ > + -e 's/#.*//' \ > + -e 's/$/ /' \ > + -e "/^[0-9][0-9][0-9].* $r /"'{ s/ .*//p }') > if [ -z "$group_list" ] > then > echo "Group \"$r\" is empty or not defined?" > > > _______________________________________________ > xfs mailing list > xfs@oss.sgi.com > http://oss.sgi.com/mailman/listinfo/xfs _______________________________________________ xfs mailing list xfs@oss.sgi.com http://oss.sgi.com/mailman/listinfo/xfs