mirror of
https://github.com/kdave/btrfs-progs
synced 2025-04-30 15:07:56 +00:00
btrfs-progs: tests: fix misc/026 to run on NFS
The temporary files are not accessible if the testsuite is hosted on NFS, pre-create them and allow writes. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
cba6bae15d
commit
3fe16a10da
@ -18,6 +18,8 @@ touch "$TEST_MNT/|5gp!"
|
|||||||
|
|
||||||
run_check_umount_test_dev
|
run_check_umount_test_dev
|
||||||
|
|
||||||
|
run_check touch img img.restored img.dump
|
||||||
|
run_check chmod a+w img img.restored img.dump
|
||||||
run_check $SUDO_HELPER "$TOP/btrfs-image" -ss "$TEST_DEV" img
|
run_check $SUDO_HELPER "$TOP/btrfs-image" -ss "$TEST_DEV" img
|
||||||
run_check $SUDO_HELPER "$TOP/btrfs-image" -r img img.restored
|
run_check $SUDO_HELPER "$TOP/btrfs-image" -r img img.restored
|
||||||
run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-tree img.restored > img.dump
|
run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-tree img.restored > img.dump
|
||||||
|
Loading…
Reference in New Issue
Block a user