btrfs-progs: tests, use non-interactive sudo helper
authorDavid Sterba <dsterba@suse.cz>
Mon, 19 Jan 2015 18:09:28 +0000 (19:09 +0100)
committerDavid Sterba <dsterba@suse.cz>
Mon, 19 Jan 2015 18:09:28 +0000 (19:09 +0100)
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>
tests/common

index 84a4b9d..d7d2e9b 100644 (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
 }