]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commitdiff
Test 180 breaks if you have long device paths
authorMohamed Barwani <mohamedb@sgi.com>
Thu, 15 May 2008 04:23:55 +0000 (04:23 +0000)
committerMohamed Barwani <mohamedb@sgi.com>
Thu, 15 May 2008 04:23:55 +0000 (04:23 +0000)
Use -P for df to fix it

       -P, --portability
              use the POSIX output format
Merge of master-melb:xfs-cmds:31162a by kenmcd.

  fix df for long /dev paths

180

diff --git a/180 b/180
index 88c8f54ebbdd75bebb2744f64dccd14ad24a3a70..3ad7972dcbd935fe0069fa5e32c8649f0160c856 100644 (file)
--- a/180
+++ b/180
@@ -38,7 +38,7 @@ _scratch_mkfs_xfs >/dev/null 2>&1
 _scratch_mount
 
 # Do we have enough space on disk?
-FREE_BLOCKS=`df -kl $SCRATCH_MNT | grep -v Filesystem | awk '{print $4}'`
+FREE_BLOCKS=`df -klP $SCRATCH_MNT | grep -v Filesystem | awk '{print $4}'`
 [ $FREE_BLOCKS -lt 10485760 ] && _notrun "This test requires at least 10GB of \
                                           $SCRATCH_DEV to run"