]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfstests-dev.git/commit
fstests: cleanup test btrfs/029
authorFilipe Manana <fdmanana@suse.com>
Mon, 11 Jan 2016 04:05:20 +0000 (15:05 +1100)
committerDave Chinner <david@fromorbit.com>
Mon, 11 Jan 2016 04:05:20 +0000 (15:05 +1100)
commit7a9cfc2a42e4a93c07c191348d92c13e49880783
tree73cd2746964a32b6cbd723d1bd0096d611732303
parent2a78c1d1ba2cc1c51898fc83d7f15786667d3aac
fstests: cleanup test btrfs/029

The test was using $SCRATCH_MNT as a mountpoint for $SCRATCH_DEV, which
is counter intuitive and not expected by the fstests framework - this
made the test fail after commit 27d077ec0bda (common: use mount/umount
helpers everywhere). So rewrite the test to use the scratch device for
all data and use a test specific directory inside $TEST_DIR to use as a
mount point for a cross mount of $SCRATCH_DEV.

This test was also overriding $seqres.full, through the redirect ">"
operator, if a call to cp failed. Fix that by using instead the operator
">>". Also make the test use the function _mount() instead of calling
the mount program directly.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
tests/btrfs/029
tests/btrfs/029.out