diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2014-12-11 01:16:38 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2015-03-06 04:41:46 +0100 |
commit | de60dfd38967d64392c2a902473bd1966371a21a (patch) | |
tree | 9f0e0372d0a67bef541afcc984c1339266b50324 /selftest/selftesthelpers.py | |
parent | 4dae2d6af8e5f8c415eb42655087fbd6ceb2d52c (diff) | |
download | samba-de60dfd38967d64392c2a902473bd1966371a21a.tar.gz |
Use samba.subunit.run to run subunit tests.
Change-Id: Id9bdd33b7ac5e4db40ab8bef4dbe0f04c36d8da7
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'selftest/selftesthelpers.py')
-rw-r--r-- | selftest/selftesthelpers.py | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/selftest/selftesthelpers.py b/selftest/selftesthelpers.py index 6e387ec9dd3..3c1e6badef3 100644 --- a/selftest/selftesthelpers.py +++ b/selftest/selftesthelpers.py @@ -58,13 +58,6 @@ if subprocess.call(perl + ["-e", "eval require Test::More;"]) == 0: else: has_perl_test_more = False -try: - from subunit.run import TestProgram -except ImportError: - has_system_subunit_run = False -else: - has_system_subunit_run = True - python = os.getenv("PYTHON", "python") # Set a default value, overridden if we find a working one on the system @@ -166,13 +159,7 @@ def planpythontestsuite(env, module, name=None, extra_path=[]): if name is None: name = module pypath = list(extra_path) - if not has_system_subunit_run: - pypath.extend([ - "%s/lib/subunit/python" % srcdir(), - "%s/lib/testtools" % srcdir(), - "%s/lib/extras" % srcdir(), - "%s/lib/mimeparse" % srcdir()]) - args = [python, "-m", "subunit.run", "$LISTOPT", "$LOADLIST", module] + args = [python, "-m", "samba.subunit.run", "$LISTOPT", "$LOADLIST", module] if pypath: args.insert(0, "PYTHONPATH=%s" % ":".join(["$PYTHONPATH"] + pypath)) plantestsuite_loadlist(name, env, args) |