summaryrefslogtreecommitdiff
path: root/source4/scripting/python
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-04-14 19:13:41 +0200
committerAndrew Bartlett <abartlet@samba.org>2008-04-14 19:13:41 +0200
commit1bcbc4afcf2f9984081652c1fbe50d329c86b3b5 (patch)
tree074fbaf796f82a4bd3fe48488c880f196a915507 /source4/scripting/python
parentc1d9167fbcc5df9da4f603084ad732915c68c0c0 (diff)
downloadsamba-1bcbc4afcf2f9984081652c1fbe50d329c86b3b5.tar.gz
samba-1bcbc4afcf2f9984081652c1fbe50d329c86b3b5.tar.bz2
samba-1bcbc4afcf2f9984081652c1fbe50d329c86b3b5.zip
Allow command line options in the subunitrun script.
(This used to be commit 524ec0796efebd48e7b5b2eb5fcc92ecc13c0071)
Diffstat (limited to 'source4/scripting/python')
-rw-r--r--source4/scripting/python/samba/tests/__init__.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/source4/scripting/python/samba/tests/__init__.py b/source4/scripting/python/samba/tests/__init__.py
index ceb7dd23f3..e29b4a87d5 100644
--- a/source4/scripting/python/samba/tests/__init__.py
+++ b/source4/scripting/python/samba/tests/__init__.py
@@ -85,15 +85,13 @@ class LdbExtensionTests(TestCaseInTempDir):
os.unlink(path)
-def get_loadparm():
- import param
- lp = param.LoadParm()
- lp.load(os.getenv("SMB_CONF_PATH"))
- return lp
+cmdline_loadparm = None
+cmdline_credentials = None
class RpcInterfaceTestCase(unittest.TestCase):
def get_loadparm(self):
- return get_loadparm()
+ assert cmdline_loadparm is not None
+ return cmdline_loadparm
def get_credentials(self):
- return None
+ return cmdline_credentials