Return-Path: Received: from dkim2.fusionio.com ([66.114.96.54]:35741 "EHLO dkim2.fusionio.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932413Ab3GZPpf (ORCPT ); Fri, 26 Jul 2013 11:45:35 -0400 Received: from mx1.fusionio.com (unknown [10.101.1.160]) by dkim2.fusionio.com (Postfix) with ESMTP id EA3C49A03C9 for ; Fri, 26 Jul 2013 09:45:34 -0600 (MDT) From: Josef Bacik To: , Subject: [PATCH] xfstests: generic/314 filter out total from ls -l output Date: Fri, 26 Jul 2013 11:45:32 -0400 Message-ID: <1374853532-19253-1-git-send-email-jbacik@fusionio.com> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-btrfs-owner@vger.kernel.org List-ID: ls -l will show the nblocks for the directory, and this made it into the golden output for 314. The problem is nblocks is 0 for btrfs directories because we're awesome, which makes us fail this test. So filter out the "total blah" line of ls -l so btrfs can pass this test too. Thanks, Signed-off-by: Josef Bacik --- tests/generic/314 | 2 +- tests/generic/314.out | 1 - 2 files changed, 1 insertions(+), 2 deletions(-) diff --git a/tests/generic/314 b/tests/generic/314 index 2d34ea8..0dd98a3 100644 --- a/tests/generic/314 +++ b/tests/generic/314 @@ -62,7 +62,7 @@ su $qa_user -c "setfacl -m u:$qa_user:rwx,d:u:$qa_user:rwx $TEST_DIR/$seq-dir" su $qa_user -c "mkdir $TEST_DIR/$seq-dir/subdir2" # Both subdirs should have inherited sgid -_ls_l $TEST_DIR/$seq-dir/ | _filter_test_dir | awk '{print $1,$NF}' +_ls_l $TEST_DIR/$seq-dir/ | grep -v total | _filter_test_dir | awk '{print $1,$NF}' status=0 exit diff --git a/tests/generic/314.out b/tests/generic/314.out index 180be80..b2db82b 100644 --- a/tests/generic/314.out +++ b/tests/generic/314.out @@ -1,4 +1,3 @@ QA output created by 314 -total 4 drwxr-sr-x subdir drwxrwsr-x+ subdir2 -- 1.7.7.6