From 6321d5bf9764929c7bb8c39f7461759776b7739a Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 14 Nov 2011 01:54:26 +0100 Subject: s4-tests: Allow listing tests run for iconv. --- source4/selftest/tests.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'source4/selftest/tests.py') diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index 0a1ff7a1a7..7715e96caa 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -33,8 +33,9 @@ if validate: else: validate_list = [] -def plansmbtorturetestsuite(name, env, options): - modname = "samba4.%s" % name +def plansmbtorturetestsuite(name, env, options, modname=None): + if modname is None: + modname = "samba4.%s" % name cmdline = "%s $LISTOPT %s %s" % (valgrindify(smb4torture), options, name) plantestsuite_loadlist(modname, env, cmdline) @@ -274,9 +275,9 @@ for t in smb4torture_testsuites("local."): # Confirm these tests with the system iconv too for t in ["local.convert_string_handle", "local.convert_string", "local.ndr"]: - modname = "samba4.%s.system.iconv" % t - cmdline = "%s %s %s" % (valgrindify(smb4torture), "ncalrpc: --option='iconv:use_builtin_handlers=false'", t) - plantestsuite_loadlist(modname, "none", cmdline) + options = "ncalrpc: --option='iconv:use_builtin_handlers=false'" + plansmbtorturetestsuite(t, "none", options, + modname="samba4.%s.system.iconv" % t) tdbtorture4 = binpath("tdbtorture") if os.path.exists(tdbtorture4): -- cgit