test/fs: error case fixes/enhancements
authorStephen Warren <swarren@nvidia.com>
Mon, 14 Dec 2015 22:01:15 +0000 (15:01 -0700)
committerTom Rini <trini@konsulko.com>
Thu, 14 Jan 2016 02:05:21 +0000 (21:05 -0500)
commit08eee2718aefea16d7a7e32e318ff03a1539e5c2
treee16c07e46eecea64b148d4c624d5d414b39a9ec7
parent2a1a29c5e7a785d3efce2c74f0b27aca274ef482
test/fs: error case fixes/enhancements

- Use "mkdir -p" to avoid errors when intermediate directories are
  missing.
- Fall back to "dd" when "fallocate" fails. For example, fallocate isn't
  supported on ext4.
- Add error checking for test image generation. Without this, the test
  simply plows on spewing all kinds of errors which are hard to
  immediately root-cause.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
test/fs/fs-test.sh