mirror of
https://github.com/kdave/btrfs-progs
synced 2025-05-03 08:27:56 +00:00
btrfs-progs: tests: fixup mount tests of fsck/028-unaligned-super-dev-sizes
This test was broken because it tried to mount a different image than what it had repaired. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
7de5fafc64
commit
811303eab2
@ -6,21 +6,18 @@
|
|||||||
source "$TOP/tests/common"
|
source "$TOP/tests/common"
|
||||||
|
|
||||||
check_prereq btrfs
|
check_prereq btrfs
|
||||||
prepare_test_dev
|
|
||||||
setup_root_helper
|
setup_root_helper
|
||||||
|
|
||||||
check_all_images
|
check_all_images
|
||||||
|
|
||||||
image=$(extract_image "./dev_and_super_mismatch_unaligned.raw.xz")
|
TEST_DEV=$(extract_image "./dev_and_super_mismatch_unaligned.raw.xz")
|
||||||
|
|
||||||
# detect and fix
|
# detect and fix
|
||||||
run_check "$TOP/btrfs" rescue fix-device-size "$image"
|
run_check "$TOP/btrfs" rescue fix-device-size "$TEST_DEV"
|
||||||
# no problem found
|
# no problem found
|
||||||
run_check "$TOP/btrfs" rescue fix-device-size "$image"
|
run_check "$TOP/btrfs" rescue fix-device-size "$TEST_DEV"
|
||||||
# check if fix-device-size worked
|
# check if fix-device-size worked
|
||||||
run_check "$TOP/btrfs" check "$image"
|
run_check "$TOP/btrfs" check "$TEST_DEV"
|
||||||
# mount test
|
# mount test
|
||||||
run_check_mount_test_dev
|
run_check_mount_test_dev
|
||||||
run_check_umount_test_dev
|
run_check_umount_test_dev "$TEST_MNT"
|
||||||
|
|
||||||
rm -f "$image"
|
|
||||||
|
Loading…
Reference in New Issue
Block a user