diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2009-02-11 18:45:51 +0100 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2009-02-11 18:45:51 +0100 |
commit | 9e71fef57b956fa62134e5b885fc4ff78a957e71 (patch) | |
tree | 9ed536b810f61d6e70766ca6c99861b66e4705c2 | |
parent | 53b59aa2cf78d465f471916c7fae60b9f212840b (diff) | |
download | samba-9e71fef57b956fa62134e5b885fc4ff78a957e71.tar.gz samba-9e71fef57b956fa62134e5b885fc4ff78a957e71.tar.bz2 samba-9e71fef57b956fa62134e5b885fc4ff78a957e71.zip |
Use convenience function for finding setup dir in SaMDB tests.
-rw-r--r-- | source4/scripting/python/samba/tests/samdb.py | 4 |
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() |