btrfs-progs: tests, use non-interactive sudo helper

Sudo may not be configured to run without user prompt, in that case the
tests would be stuck.

Reported-by: Qu Wenruo <quwenruo@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
This commit is contained in:
David Sterba 2015-01-19 19:09:28 +01:00
parent e1ee8b2a0f
commit 188e79e2fc
1 changed files with 1 additions and 1 deletions

View File

@ -58,7 +58,7 @@ export have_root_helper
setup_root_helper()
{
if [ $UID != 0 ]; then
sudo=sudo
sudo="sudo --non-interactive"
fi
have_root_helper=1
}