summaryrefslogtreecommitdiff
path: root/selftest
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-03-11 21:46:00 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-03-11 23:57:04 +0100
commited32df61f8d447735546b3b7b78fe8d112313287 (patch)
tree485d1f485e94da463b084cb690032a10f74ca2b6 /selftest
parent6f9c333f95956138fbd8245a4cf3f285ca601181 (diff)
downloadsamba-ed32df61f8d447735546b3b7b78fe8d112313287.tar.gz
samba-ed32df61f8d447735546b3b7b78fe8d112313287.tar.bz2
samba-ed32df61f8d447735546b3b7b78fe8d112313287.zip
selftest.py: Remove some unnecessary checks.
Diffstat (limited to 'selftest')
-rwxr-xr-xselftest/selftest.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/selftest/selftest.py b/selftest/selftest.py
index f35541a3e5..af2e5528b4 100755
--- a/selftest/selftest.py
+++ b/selftest/selftest.py
@@ -174,9 +174,6 @@ if opts.ldap:
prefix = os.path.normpath(opts.prefix)
-if prefix == "":
- raise Exception("using an empty prefix isn't allowed")
-
# Ensure we have the test prefix around.
#
# We need restrictive permissions on this as some subdirectories in this tree
@@ -194,10 +191,8 @@ if not os.path.isdir(tmpdir_abs):
srcdir_abs = os.path.abspath(opts.srcdir)
-if prefix_abs == "":
- raise Exception("using an empty absolute prefix isn't allowed")
if prefix_abs == "/":
- raise Exception("using '/' as absolute prefix isn't allowed")
+ raise Exception("using '/' as absolute prefix is a bad idea")
os.environ["PREFIX"] = prefix
os.environ["KRB5CCNAME"] = os.path.join(prefix, "krb5ticket")