1) If mounting the scratch device fails it redirects both stdout and
stderr to /dev/null, so it gets unnoticed and the test runs against
a different fs than expected (in my test environment $SCRATCH_MNT
points to a directory in an ext4 fs for example but I want to test
btrfs);
2) We are redirecting the stdout and stderr of fiemap-tester to the
$seqres.full file, so if it fails it gets completely unnoticed and
the test succeeds.
For the first issue fix this by not even using the scratch filesystem and
use instead the test filesystem, since the test creates a 2M file which
is small enough.
For the second issue simply don't redirect the stdout and stderr, so that
if the test program fails it causes a mismatch with the golden output,
making the test fail.
Signed-off-by: Filipe Manana <fdmanana@suse.com> Reviewed-by: Zorro Lang <zlang@redhat.com> Signed-off-by: Zorro Lang <zlang@kernel.org>