summaryrefslogtreecommitdiff
path: root/tests/cachekey
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-04 11:46:08 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-04 11:49:19 -0400
commitc5739b5fed7df4d087ce9d3fecd053c9a3b1de58 (patch)
tree3a7bca8b01c3257021b58a1c8a2247e4e13abb75 /tests/cachekey
parentce4bebc13a17e761dc21078b786677a00dae407b (diff)
downloadbuildstream-c5739b5fed7df4d087ce9d3fecd053c9a3b1de58.tar.gz
tests/cachekey/cachekey.py: Skip if not all plugins are available
Diffstat (limited to 'tests/cachekey')
-rw-r--r--tests/cachekey/cachekey.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py
index 8f350bf43..8ff877e19 100644
--- a/tests/cachekey/cachekey.py
+++ b/tests/cachekey/cachekey.py
@@ -36,6 +36,7 @@
# the result.
#
from tests.testutils.runcli import cli
+from tests.testutils.site import HAVE_BZR, HAVE_GIT
import os
from collections import OrderedDict
@@ -145,6 +146,11 @@ DATA_DIR = os.path.join(
)
+# The cache key test uses a project which exercises all plugins,
+# so we cant run it at all if we dont have them installed.
+#
+@pytest.mark.skipif(HAVE_BZR, reason="bzr is not available")
+@pytest.mark.skipif(HAVE_GIT, reason="git is not available")
@pytest.mark.datafiles(DATA_DIR)
def test_cache_key(datafiles, cli):
project = os.path.join(datafiles.dirname, datafiles.basename)