diff options
-rw-r--r-- | tests/cachekey/cachekey.py | 6 |
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) |