tests: avoid spurious parallel failure due to temporary disk full
authorJim Meyering <meyering@redhat.com>
Sun, 3 Apr 2011 19:54:10 +0000 (21:54 +0200)
committerJim Meyering <meyering@redhat.com>
Mon, 4 Apr 2011 16:21:32 +0000 (18:21 +0200)
commita71537366ea913fe62a71392993a570d95b473ab
treeb802bd5c3b2624e745071ee4cc4164c1ca613cc0
parent4e23ca47ac2ff81bdc2004be4dad1217b4bec802
tests: avoid spurious parallel failure due to temporary disk full

Running the new fiemap-empty test uses 600MB of disk space via
fallocate, and in so doing caused failure in unrelated tests that
were running in parallel on a small file system.  Rather than
simply running fallocate (which allocates the space, inducing
disk full when it fails), skip the test if there is less than
800MB of free space, as computed via stat and awk.
* tests/init.cfg (require_file_system_bytes_free_): New function.
* tests/cp/fiemap-empty: Use it.
tests/cp/fiemap-empty
tests/init.cfg