From 8878949ff5d8261657f950ec1c372e35aae7c8de Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 8 Dec 2011 02:42:08 +0100 Subject: selftest: Some extra assertions. --- source4/selftest/tests.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'source4/selftest') 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)) -- cgit