summaryrefslogtreecommitdiff
path: root/source4/scripting/swig/torture
diff options
context:
space:
mode:
Diffstat (limited to 'source4/scripting/swig/torture')
-rwxr-xr-xsource4/scripting/swig/torture/pytorture2
-rwxr-xr-xsource4/scripting/swig/torture/torture_samr.py5
2 files changed, 3 insertions, 4 deletions
diff --git a/source4/scripting/swig/torture/pytorture b/source4/scripting/swig/torture/pytorture
index fd4a92eeb4..e0123447e8 100755
--- a/source4/scripting/swig/torture/pytorture
+++ b/source4/scripting/swig/torture/pytorture
@@ -48,4 +48,4 @@ for test in args:
if not hasattr(module, 'runtests'):
print 'Module "%s" does not have a runtests function' % test
- module.runtests(binding, domain, username, password)
+ module.runtests(binding, (domain, username, password))
diff --git a/source4/scripting/swig/torture/torture_samr.py b/source4/scripting/swig/torture/torture_samr.py
index 929420695d..2064d28044 100755
--- a/source4/scripting/swig/torture/torture_samr.py
+++ b/source4/scripting/swig/torture/torture_samr.py
@@ -721,13 +721,12 @@ def test_EnumDomains(pipe, connect_handle):
for domain in connect_handle.EnumDomains():
test_LookupDomain(pipe, connect_handle, domain)
-def runtests(binding, domain, username, password):
+def runtests(binding, creds):
print 'Testing SAMR pipe'
pipe = dcerpc.pipe_connect(binding,
- dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION),
- domain, username, password)
+ dcerpc.DCERPC_SAMR_UUID, int(dcerpc.DCERPC_SAMR_VERSION), creds)
handle = test_Connect(pipe)