btrfs-progs/tests
Zhao Lei 107adbd05d btrfs-progs: tests: umount TEST_MNT in clean-tests.sh
If a testcase failed, we can't run it(or other tests needs mount) again,
  # ./misc-tests.sh 007
   [TEST]   007-subvolume-sync
   failed: fail
   test failed for case 007-subvolume-sync
  # ./misc-tests.sh 007
   [TEST]   007-subvolume-sync
   failed: mount /root/btrfs-progs/tests/test.img /root/btrfs-progs/tests/mnt
   test failed for case 007-subvolume-sync

This patch add "umount $TEST_MNT" to clean-tests.sh, to let user
clean mountpoint easily.

After patch:
  # ./misc-tests.sh  007
   [TEST]   007-subvolume-sync
   failed: fail
   test failed for case 007-subvolume-sync
  #
  # clean-tests.sh
  #
  # ./misc-tests.sh  007
   [TEST]   007-subvolume-sync
   failed: fail
   test failed for case 007-subvolume-sync

Suggested-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
[added sudo helper to umount]
Signed-off-by: David Sterba <dsterba@suse.com>
2015-09-01 14:02:48 +02:00
..
fsck-tests btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
misc-tests btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
clean-tests.sh btrfs-progs: tests: umount TEST_MNT in clean-tests.sh 2015-09-01 14:02:48 +02:00
common btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
convert-tests.sh btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
fsck-tests.sh btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00
misc-tests.sh btrfs-progs: tests: Introduce init_env to initialize common env variant 2015-09-01 14:02:48 +02:00