Use created loadparm context, rather than the one specified on the command-line.
authorJelmer Vernooij <jelmer@samba.org>
Thu, 12 Feb 2009 14:58:11 +0000 (15:58 +0100)
committerJelmer Vernooij <jelmer@samba.org>
Thu, 12 Feb 2009 14:58:11 +0000 (15:58 +0100)
source4/scripting/python/samba/tests/samdb.py

index 434d7a71f2c9e24b677ee6d0537f454a2cd49545..e0bbf07ba8a00e4ae20bb27454928bf41a1b4725 100644 (file)
@@ -21,7 +21,7 @@ from samba.credentials import Credentials
 import os
 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.tests import TestCaseInTempDir
 from samba.dcerpc import security
 from unittest import TestCase
 import uuid
@@ -69,7 +69,7 @@ class SamDBTestCase(TestCaseInTempDir):
                           self.setup_path, session_info=session_info, 
                           credentials=creds, lp=self.lp)
         self.samdb = setup_samdb(path, self.setup_path, session_info, creds, 
-                                 cmdline_loadparm, names, 
+                                 self.lp, names, 
                                  lambda x: None, domainsid, 
                                  "# no aci", domainguid, 
                                  policyguid, False, "secret",