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:
parent
ecb66fd754
commit
b9b732c29d
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -6,6 +6,7 @@ source "$TEST_TOP/common"
|
|||
|
||||
check_prereq mkfs.btrfs
|
||||
|
||||
setup_root_helper
|
||||
prepare_test_dev
|
||||
|
||||
tmp=$(_mktemp_dir mkfs-rootdir)
|
||||
|
|
Loading…
Reference in New Issue