summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-01-19 19:09:28 +0100
committerDavid Sterba <dsterba@suse.cz>2015-01-19 19:09:28 +0100
commit188e79e2fcac8cdf474d9a23adfcce48e319c745 (patch)
tree6973e2d4d415b66de7aeebb5aa942efaa8f85ef9
parente1ee8b2a0f60ddd51a22844f060ec486732b67b5 (diff)
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>
-rw-r--r--tests/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common b/tests/common
index 84a4b9d3..d7d2e9be 100644
--- a/tests/common
+++ b/tests/common
@@ -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
}