summaryrefslogtreecommitdiff
path: root/source4/scripting
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2009-02-11 18:45:51 +0100
committerJelmer Vernooij <jelmer@samba.org>2009-02-11 18:45:51 +0100
commit9e71fef57b956fa62134e5b885fc4ff78a957e71 (patch)
tree9ed536b810f61d6e70766ca6c99861b66e4705c2 /source4/scripting
parent53b59aa2cf78d465f471916c7fae60b9f212840b (diff)
downloadsamba-9e71fef57b956fa62134e5b885fc4ff78a957e71.tar.gz
samba-9e71fef57b956fa62134e5b885fc4ff78a957e71.tar.bz2
samba-9e71fef57b956fa62134e5b885fc4ff78a957e71.zip
Use convenience function for finding setup dir in SaMDB tests.
Diffstat (limited to 'source4/scripting')
-rw-r--r--source4/scripting/python/samba/tests/samdb.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/scripting/python/samba/tests/samdb.py b/source4/scripting/python/samba/tests/samdb.py
index 8b8f178bc4..434d7a71f2 100644
--- a/source4/scripting/python/samba/tests/samdb.py
+++ b/source4/scripting/python/samba/tests/samdb.py
@@ -19,7 +19,7 @@
from samba.auth import system_session
from samba.credentials import Credentials
import os
-from samba.provision import setup_samdb, guess_names, setup_templatesdb, make_smbconf
+from samba.provision import setup_samdb, guess_names, setup_templatesdb, make_smbconf, find_setup_dir
from samba.samdb import SamDB
from samba.tests import cmdline_loadparm, TestCaseInTempDir
from samba.dcerpc import security
@@ -30,7 +30,7 @@ from samba import param
class SamDBTestCase(TestCaseInTempDir):
def setup_path(self, relpath):
- return os.path.join("setup", relpath)
+ return os.path.join(find_setup_dir(), relpath)
def setUp(self):
super(SamDBTestCase, self).setUp()