mirror of
https://github.com/kdave/btrfs-progs
synced 2025-01-11 16:29:42 +00:00
btrfs-progs: tests: do not run sudo helper tests if not necessary
We use setup_root_helper in some helpers to make sure that the sudo helper is set up, and adding that to each test. Make the real test run only once. Signed-off-by: David Sterba <dsterba@suse.com>
This commit is contained in:
parent
6105df64a1
commit
1fcb190793
@ -157,7 +157,7 @@ root_helper()
|
||||
|
||||
setup_root_helper()
|
||||
{
|
||||
if [ $UID -eq 0 ]; then
|
||||
if [ $UID -eq 0 -o -n "$SUDO_HELPER" ]; then
|
||||
return
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user