From 4be1b0929390ab4424b03afede4ec0d643c5556d Mon Sep 17 00:00:00 2001 From: Marcos Paulo de Souza Date: Thu, 5 Dec 2019 12:36:47 -0300 Subject: [PATCH] btrfs-progs: tests: mkfs/020: use correct device for mount It seems to be a typo, since $dev1 was not set, and we are dealing with TEST_DEV and not with loop devices. As this is now equivalent to the common mount/umount helpers, use them. Signed-off-by: Marcos Paulo de Souza Signed-off-by: David Sterba --- tests/mkfs-tests/020-basic-checksums-mount/test.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/mkfs-tests/020-basic-checksums-mount/test.sh b/tests/mkfs-tests/020-basic-checksums-mount/test.sh index ed3e90b5..eaac25dd 100755 --- a/tests/mkfs-tests/020-basic-checksums-mount/test.sh +++ b/tests/mkfs-tests/020-basic-checksums-mount/test.sh @@ -19,11 +19,11 @@ test_mkfs_mount_checksum() run_check $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-super "$TEST_DEV" run_check $SUDO_HELPER "$TOP/btrfs" check "$TEST_DEV" - run_check $SUDO_HELPER mount "$dev1" "$TEST_MNT" + run_check_mount_test_dev run_check "$TOP/btrfs" filesystem df "$TEST_MNT" run_check $SUDO_HELPER "$TOP/btrfs" filesystem usage "$TEST_MNT" run_check $SUDO_HELPER "$TOP/btrfs" device usage "$TEST_MNT" - run_check $SUDO_HELPER umount "$TEST_MNT" + run_check_umount_test_dev } if ! [ -f "/sys/fs/btrfs/features/supported_checksums" ]; then