summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2011-12-08 02:42:08 +0100
committerJelmer Vernooij <jelmer@samba.org>2011-12-08 03:24:27 +0100
commit8878949ff5d8261657f950ec1c372e35aae7c8de (patch)
tree3ac533525e978f1336785d9bced42f0980cab344 /source4
parent86338ab551baf7c5dc4f63a1a103880e886acf69 (diff)
downloadsamba-8878949ff5d8261657f950ec1c372e35aae7c8de.tar.gz
samba-8878949ff5d8261657f950ec1c372e35aae7c8de.tar.bz2
samba-8878949ff5d8261657f950ec1c372e35aae7c8de.zip
selftest: Some extra assertions.
Diffstat (limited to 'source4')
-rwxr-xr-xsource4/selftest/tests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py
index 370bce30b6..613f5a1143 100755
--- a/source4/selftest/tests.py
+++ b/source4/selftest/tests.py
@@ -131,6 +131,8 @@ for bindoptions in ["seal,padcheck"] + validate_list + ["bigendian"]:
tests = ncacn_np_tests
elif transport == "ncacn_ip_tcp":
tests = ncacn_ip_tcp_tests
+ else:
+ raise AssertionError("invalid transport %r"% transport)
for t in tests:
plansmbtorturetestsuite(t, env, ["%s:$SERVER[%s]" % (transport, bindoptions), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.%s on %s with %s" % (t, transport, bindoptions))
plansmbtorturetestsuite('rpc.samba3-sharesec', env, ["%s:$SERVER[%s]" % (transport, bindoptions), '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN', '--option=torture:share=tmp'], "samba4.rpc.samba3.sharesec on %s with %s" % (transport, bindoptions))
@@ -157,6 +159,8 @@ for transport in ["ncacn_np", "ncacn_ip_tcp"]:
tests = slow_ncacn_np_tests
elif transport == "ncacn_ip_tcp":
tests = slow_ncacn_ip_tcp_tests
+ else:
+ raise AssertionError("Invalid transport %r" % transport)
for t in tests:
plansmbtorturetestsuite(t, env, ["%s:$SERVER" % transport, '-U$USERNAME%$PASSWORD', '--workgroup=$DOMAIN'], "samba4.%s on %s" % (t, transport))