diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2012-10-26 13:09:45 -0800 |
---|---|---|
committer | Jelmer Vernooij <jelmer@samba.org> | 2012-10-27 05:16:18 -0800 |
commit | 6bcb25673bdc249f5a49ded912d90bc84b13809d (patch) | |
tree | c7eb954a1f1aa18c62230d035da878213d918b10 /selftest | |
parent | 4c4d3c86f0430d38f78d16dcb5d365b577ef4227 (diff) | |
download | samba-6bcb25673bdc249f5a49ded912d90bc84b13809d.tar.gz samba-6bcb25673bdc249f5a49ded912d90bc84b13809d.tar.bz2 samba-6bcb25673bdc249f5a49ded912d90bc84b13809d.zip |
selftest/selftesthelpers.py: Share configuration variable, strip whitespace.
Diffstat (limited to 'selftest')
-rw-r--r-- | selftest/selftesthelpers.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py index b22330ae0a..ae0a756823 100644 --- a/selftest/selftesthelpers.py +++ b/selftest/selftesthelpers.py @@ -186,6 +186,7 @@ configuration = "--configfile=$SMB_CONF_PATH" smbtorture4 = binpath("smbtorture4") smbtorture4_testsuite_list = subprocess.Popen([smbtorture4, "--list-suites"], stdout=subprocess.PIPE, stderr=subprocess.PIPE).communicate("")[0].splitlines() + def plansmbtorture4testsuite(name, env, options, modname=None): if modname is None: modname = "samba4.%s" % name @@ -194,5 +195,6 @@ def plansmbtorture4testsuite(name, env, options, modname=None): 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) |