diff options
author | Tristan Maat <tristan.maat@codethink.com> | 2017-09-05 04:22:13 -0500 |
---|---|---|
committer | Tristan Maat <tristan.maat@codethink.co.uk> | 2017-09-28 14:46:33 +0100 |
commit | 206fc51a6cf57697f03e27508819eafaaee58317 (patch) | |
tree | e019ce1bf25ceb1ca90964450908ae2965e75eef /tests/cachekey | |
parent | 37ece921d0cd4a69174ae8591127113973f53d46 (diff) | |
download | buildstream-206fc51a6cf57697f03e27508819eafaaee58317.tar.gz |
Fix tests for other platforms
Diffstat (limited to 'tests/cachekey')
-rw-r--r-- | tests/cachekey/cachekey.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py index b1a2ff282..444da90e8 100644 --- a/tests/cachekey/cachekey.py +++ b/tests/cachekey/cachekey.py @@ -36,7 +36,7 @@ # the result. # from tests.testutils.runcli import cli -from tests.testutils.site import HAVE_BZR, HAVE_GIT +from tests.testutils.site import HAVE_BZR, HAVE_GIT, HAVE_OSTREE, IS_LINUX import os from collections import OrderedDict @@ -149,8 +149,10 @@ 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(not IS_LINUX, reason='Only available on linux') @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.skipif(HAVE_OSTREE is False, reason="ostree is not available") @pytest.mark.datafiles(DATA_DIR) def test_cache_key(datafiles, cli): project = os.path.join(datafiles.dirname, datafiles.basename) |