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 o0SNXUP0061085 for ; Thu, 28 Jan 2010 17:33:31 -0600 Received: from mail.sandeen.net (localhost [127.0.0.1]) by cuda.sgi.com (Spam Firewall) with ESMTP id C22F119916A for ; Thu, 28 Jan 2010 15:34:35 -0800 (PST) Received: from mail.sandeen.net (64-131-60-146.usfamily.net [64.131.60.146]) by cuda.sgi.com with ESMTP id jZaTb4r7kiPjBuDn for ; Thu, 28 Jan 2010 15:34:35 -0800 (PST) Received: from Liberator.local (liberator.sandeen.net [10.0.0.4]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail.sandeen.net (Postfix) with ESMTP id 90B589E7269 for ; Thu, 28 Jan 2010 17:34:35 -0600 (CST) Message-ID: <4B621F0C.2070407@sandeen.net> Date: Thu, 28 Jan 2010 17:34:36 -0600 From: Eric Sandeen MIME-Version: 1.0 Subject: Re: [PATCH] xfstests: filter selinux output in _acl_ls References: <4B61C1BC.4050800@sandeen.net> In-Reply-To: <4B61C1BC.4050800@sandeen.net> 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 Eric Sandeen wrote: > When selinux is on, ls -l gives us a "." to indicate selinux > attrs, which breaks some tests: > > === Test minimal ACE === > Setup file > --rwxrw-r-- id1 id2 file1 > +-rwxrw-r--. id1 id2 file1 > > so filter that out. Hmm NAK this one for now; there are more places that need this fixup, maybe an _ls_l() would be a good idea and put the filter in one spot. -Eric > Signed-off-by: Eric Sandeen > --- > > Index: xfstests/common.attr > =================================================================== > --- xfstests.orig/common.attr > +++ xfstests/common.attr > @@ -58,7 +58,10 @@ _acl_filter_id() > # > _acl_ls() > { > - ls -ln $* | awk '{ print $1, $3, $4, $NF }' | _acl_filter_id > + ls -ln $* | \ > + sed "s/\(.*\)\. /\1 /" | \ > + awk '{ print $1, $3, $4, $NF }' | \ > + _acl_filter_id > } > > # > > _______________________________________________ > 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