btrfs-progs: tests: Use mount_test_dev for misc-tests/007-subvolume-sync

So this test can support both block device and loop device simply.

Signed-off-by: Zhao Lei <zhaolei@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
Zhao Lei 2015-09-01 18:03:28 +08:00 committed by David Sterba
parent d4c4443c2d
commit 34fa747ec8
1 changed files with 2 additions and 2 deletions

View File

@ -13,7 +13,7 @@ setup_root_helper
prepare_test_dev
run_check $SUDO_HELPER $TOP/mkfs.btrfs -f "$TEST_DEV"
run_check $SUDO_HELPER mount "$TEST_DEV" "$TEST_MNT"
run_check_mount_test_dev
# to check following thing in both 1 and multiple subvolume case:
# 1: is subvolume sync loop indefinetelly
@ -29,4 +29,4 @@ run_check $SUDO_HELPER $TOP/btrfs subvolume create "$TEST_MNT"/mysubvol
run_check $SUDO_HELPER $TOP/btrfs subvolume delete "$TEST_MNT"/mysubvol
run_check $SUDO_HELPER $TOP/btrfs subvolume sync "$TEST_MNT"
run_check $SUDO_HELPER umount $TEST_MNT
run_check_umount_test_dev