From ed32df61f8d447735546b3b7b78fe8d112313287 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sun, 11 Mar 2012 21:46:00 +0100 Subject: selftest.py: Remove some unnecessary checks. --- selftest/selftest.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'selftest') 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") -- cgit