summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-04 11:56:15 -0400
committerTristan Van Berkom <tristan.vanberkom@codethink.co.uk>2017-09-04 11:56:15 -0400
commit99f7febbcf697ad198af4a493feb21f7f56529dc (patch)
treee879f824edcc173babab39d344846bae42fd94b7
parentc5739b5fed7df4d087ce9d3fecd053c9a3b1de58 (diff)
downloadbuildstream-99f7febbcf697ad198af4a493feb21f7f56529dc.tar.gz
cachekey.py: Fix broken logic of excluding tests
Skip the tests if we DONT have bzr or git, not if we DO.
-rw-r--r--tests/cachekey/cachekey.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py
index 8ff877e19..b1a2ff282 100644
--- a/tests/cachekey/cachekey.py
+++ b/tests/cachekey/cachekey.py
@@ -149,8 +149,8 @@ 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.skipif(HAVE_BZR is False, reason="bzr is not available")
+@pytest.mark.skipif(HAVE_GIT is False, reason="git is not available")
@pytest.mark.datafiles(DATA_DIR)
def test_cache_key(datafiles, cli):
project = os.path.join(datafiles.dirname, datafiles.basename)