btrfs-progs: tests: explicitly setup root helper

There are some helpers that invoke setup_root_helper internally so it's
not needed to run test.sh without root, but it should be there in case
the test calls SUDO_HELPER so it's always paired.

Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
David Sterba 2023-04-12 01:51:28 +02:00
parent ecb66fd754
commit b9b732c29d
7 changed files with 8 additions and 0 deletions

View File

@ -7,6 +7,7 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev
run_check_mkfs_test_dev

View File

@ -6,6 +6,7 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev
run_check_mkfs_test_dev

View File

@ -6,6 +6,8 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
_mktemp_local img 3g
run_check $SUDO_HELPER "$TOP/mkfs.btrfs" -f img
run_check $SUDO_HELPER "$TOP/btrfs" filesystem show img

View File

@ -6,6 +6,7 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev
run_check_mkfs_test_dev

View File

@ -6,6 +6,7 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev 4G
run_check_mkfs_test_dev

View File

@ -8,6 +8,7 @@ check_prereq btrfs-image
check_prereq mkfs.btrfs
check_prereq btrfs
setup_root_helper
prepare_test_dev
tmp=$(_mktemp_dir image)

View File

@ -6,6 +6,7 @@ source "$TEST_TOP/common"
check_prereq mkfs.btrfs
setup_root_helper
prepare_test_dev
tmp=$(_mktemp_dir mkfs-rootdir)