From 4c4d3c86f0430d38f78d16dcb5d365b577ef4227 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 26 Oct 2012 13:03:32 -0800 Subject: selftesthelpers: Share code for listing smbtorture4 tests. --- source4/selftest/tests.py | 13 ------------- 1 file changed, 13 deletions(-) (limited to 'source4/selftest') diff --git a/source4/selftest/tests.py b/source4/selftest/tests.py index bbfeaac6f1..7f10cd1652 100755 --- a/source4/selftest/tests.py +++ b/source4/selftest/tests.py @@ -25,8 +25,6 @@ import subprocess samba4srcdir = source4dir() samba4bindir = bindir() -smbtorture4 = binpath("smbtorture4") -smbtorture4_testsuite_list = subprocess.Popen([smbtorture4, "--list-suites"], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate("")[0].splitlines() validate = os.getenv("VALIDATE", "") if validate: validate_list = [validate] @@ -36,17 +34,6 @@ else: nmblookup = binpath('nmblookup4') smbclient = binpath('smbclient4') -def plansmbtorture4testsuite(name, env, options, modname=None): - if modname is None: - modname = "samba4.%s" % name - if isinstance(options, list): - options = " ".join(options) - cmdline = "%s $LISTOPT %s %s" % (valgrindify(smbtorture4), options, name) - plantestsuite_loadlist(modname, env, cmdline) - -def smbtorture4_testsuites(prefix): - return filter(lambda x: x.startswith(prefix), smbtorture4_testsuite_list) - subprocess.call([smbtorture4, "-V"], stdout=sys.stderr) bbdir = os.path.join(srcdir(), "testprogs/blackbox") -- cgit