From: Jelmer Vernooij Date: Sun, 11 Mar 2012 20:46:00 +0000 (+0100) Subject: selftest.py: Remove some unnecessary checks. X-Git-Tag: tdb-1.2.10~237 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ed32df61f8d447735546b3b7b78fe8d112313287;p=thirdparty%2Fsamba.git selftest.py: Remove some unnecessary checks. --- diff --git a/selftest/selftest.py b/selftest/selftest.py index f35541a3e53..af2e5528b40 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")