From 3fe16a10da50744e5763ec8d531f4a5acdf877ba Mon Sep 17 00:00:00 2001 From: David Sterba Date: Thu, 2 May 2019 19:14:13 +0200 Subject: [PATCH] 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 --- tests/misc-tests/026-image-non-printable-chars/test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/misc-tests/026-image-non-printable-chars/test.sh b/tests/misc-tests/026-image-non-printable-chars/test.sh index 50441a21..edd437c0 100755 --- a/tests/misc-tests/026-image-non-printable-chars/test.sh +++ b/tests/misc-tests/026-image-non-printable-chars/test.sh @@ -18,6 +18,8 @@ touch "$TEST_MNT/|5gp!" 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" -r img img.restored run_check_stdout $SUDO_HELPER "$TOP/btrfs" inspect-internal dump-tree img.restored > img.dump