btrfs/146: remove unnecessary scratch unmount to avoid test failure
authorFilipe Manana <fdmanana@suse.com>
Wed, 12 Jun 2019 10:05:44 +0000 (11:05 +0100)
committerEryu Guan <guaneryu@gmail.com>
Sun, 16 Jun 2019 13:27:08 +0000 (21:27 +0800)
Right at the beginning of the test we are unmonting the scratch device,
however at this point the device was never mounted, so the unmount fails
with an error message like the following:

  umount: /home/fdmanana/btrfs-tests/scratch_1: not mounted

Which is not expected by the golden output and therefore causes the test
to fail.

Since the device/mount point was not mounted yet in the test, and since
the test framework unmounts the scratch device after each test finishes,
just remove the call to _scratch_unmount.

Signed-off-by: Filipe Manana <fdmanana@suse.com>
Reviewed-by: Eryu Guan <guaneryu@gmail.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/btrfs/146

index 8ec3128b25e2130121d6a9623e5e76f0ee296a64..18e2eec0cbfc706a7c8ce7e33c979940d566f865 100755 (executable)
@@ -38,7 +38,6 @@ _require_test_program fsync-err
 _require_test_program dmerror
 
 # bring up dmerror device
-_scratch_unmount
 _dmerror_init
 
 # Replace first device with error-test device