]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfstests: generic/315: allow a little tolerance for our used check
authorJosef Bacik <jbacik@fusionio.com>
Mon, 29 Jul 2013 18:55:56 +0000 (14:55 -0400)
committerBen Myers <bpm@sgi.com>
Tue, 30 Jul 2013 18:37:11 +0000 (13:37 -0500)
commit54d6adf7c98500a177f0507c5905ed6dfb2fa888
tree9c3477820c0beb2f5b862504074aaa2e146e9efe
parentf2c8cf5b3a94cafc8043c89b487d0ce7b1624f18
xfstests: generic/315: allow a little tolerance for our used check

So df in btrfs is tricky at best, and relying on it for accurate information is
not great, but it's the best way to verify this test.  To get around btrfs being
inconsistent sometimes just use _within_tolerance to check our new df value to
make sure that our truncate did something.  With this patch I no longer see
transient failures of this test.  Thanks,

Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Reviewed-by: Jie Liu <jeff.liu@oracle.com>
Signed-off-by: Ben Myers <bpm@sgi.com>
tests/generic/315