summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorZhao Lei <zhaolei@cn.fujitsu.com>2015-09-01 18:03:28 +0800
committerDavid Sterba <dsterba@suse.com>2015-09-01 14:53:16 +0200
commit34fa747ec86105ec28715a498d0bfd38ff3e8b98 (patch)
treee18f74838e53ac388461a62c4daeaa0afd2c24ca /tests
parentd4c4443c2dc417b5ad8d3da8971e1c1996d7b1ed (diff)
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>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/misc-tests/007-subvolume-sync/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/misc-tests/007-subvolume-sync/test.sh b/tests/misc-tests/007-subvolume-sync/test.sh
index d4019f43..a745fb56 100755
--- a/tests/misc-tests/007-subvolume-sync/test.sh
+++ b/tests/misc-tests/007-subvolume-sync/test.sh
@@ -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