diff options
-rw-r--r-- | tests/cachekey/cachekey.py | 4 | ||||
-rw-r--r-- | tests/testutils/site.py | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/cachekey/cachekey.py b/tests/cachekey/cachekey.py index b1f8a9140..113f5bab0 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, HAVE_OSTREE, IS_LINUX +from tests.testutils.site import HAVE_BZR, HAVE_GIT, HAVE_OSTREE, IS_LINUX, MACHINE_ARCH from buildstream.plugin import CoreWarnings from buildstream import _yaml import os @@ -144,6 +144,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(MACHINE_ARCH != 'x86_64', + reason='Cache keys depend on architecture') @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") diff --git a/tests/testutils/site.py b/tests/testutils/site.py index 7dc01a613..6801be471 100644 --- a/tests/testutils/site.py +++ b/tests/testutils/site.py @@ -49,3 +49,5 @@ except ImportError: HAVE_ARPY = False IS_LINUX = os.getenv('BST_FORCE_BACKEND', sys.platform).startswith('linux') + +_, _, _, _, MACHINE_ARCH = os.uname() |