summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-04 11:46:29 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-04 11:48:44 -0400
commit38ec46bb51d7863ac1e8eaf5dffce2a530cb70ac (patch)
tree7e359783484804ad3fd7974194d379460dbbe816
parent0d665475aca1bb847749dce7cc415aefcf238e87 (diff)
downloadbuildstream-38ec46bb51d7863ac1e8eaf5dffce2a530cb70ac.tar.gz
tests/sources/bzr.py: Use site.py to determine presence of bzr
-rw-r--r--tests/sources/bzr.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/tests/sources/bzr.py b/tests/sources/bzr.py
index 79f944c04..5a5878f88 100644
--- a/tests/sources/bzr.py
+++ b/tests/sources/bzr.py
@@ -3,8 +3,8 @@ import pytest
import subprocess
from buildstream import SourceError, LoadError, Consistency, PluginError
-from buildstream import exceptions, utils
+from tests.testutils.site import HAVE_BZR
from .fixture import Setup
@@ -14,13 +14,6 @@ DATA_DIR = os.path.join(
)
-try:
- utils.get_host_tool('bzr')
- HAVE_BZR = True
-except exceptions.ProgramNotFoundError:
- HAVE_BZR = False
-
-
class BzrSetup(Setup):
bzr_env = {"BZR_EMAIL": "Testy McTesterson <testy.mctesterson@example.com>"}