]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
xfstests: generic/314 filter out total from ls -l output
authorJosef Bacik <jbacik@fusionio.com>
Fri, 26 Jul 2013 15:45:32 +0000 (11:45 -0400)
committerBen Myers <bpm@sgi.com>
Fri, 26 Jul 2013 16:15:42 +0000 (11:15 -0500)
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 <jbacik@fusionio.com>
Reviewed-by: Eric Sandeen <sandeen@redhat.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
tests/generic/314
tests/generic/314.out

index 2d34ea8623d680cc97acd8274f31aa35185c9fad..0dd98a365f75ab0b3c94aa36bd3d14faa37d53a0 100644 (file)
@@ -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
index 180be80974bb814a4c7335a1beb633222891a5d8..b2db82be18f50ff2531660139f3f3a47b8768961 100644 (file)
@@ -1,4 +1,3 @@
 QA output created by 314
-total 4
 drwxr-sr-x subdir
 drwxrwsr-x+ subdir2