summaryrefslogtreecommitdiff
path: root/tests/common
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.cz>2015-03-10 14:11:18 +0100
committerDavid Sterba <dsterba@suse.cz>2015-03-10 14:11:18 +0100
commitc392c2b5afa3373a078c16c680b101b8acdf1384 (patch)
tree4362f11c09904fb9bb84184b7632e1e75e537a22 /tests/common
parent6b1e8226e481004112f38115fde135317d67feda (diff)
btrfs-progs: tests, common: fix typo after cleanup
The previous value for unknown was -1. Reported-by: Qu Wenruo <quwenruo@cn.fujitsu.com> Signed-off-by: David Sterba <dsterba@suse.cz>
Diffstat (limited to 'tests/common')
-rw-r--r--tests/common2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/common b/tests/common
index a35d438e..91a73e1b 100644
--- a/tests/common
+++ b/tests/common
@@ -94,7 +94,7 @@ setup_root_helper()
# Newer sudo or default sudo setting
sudo -v -n &>/dev/null && NEED_SUDO_VALIDATE=yes
- if [ "$NEED_SUDO_VALIDATE" = 'yes' ]; then
+ if [ "$NEED_SUDO_VALIDATE" = 'unknown' ]; then
_not_run "Need to validate root privileges"
fi
SUDO_HELPER=root_helper