1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

selftest.py: Remove some unnecessary checks.

This commit is contained in:
Jelmer Vernooij 2012-03-11 21:46:00 +01:00
parent 6f9c333f95
commit ed32df61f8

View File

@ -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")