summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-11-12 14:21:46 +0100
committerValentin David <valentin.david@codethink.co.uk>2018-11-12 15:47:06 +0100
commitd0932ea34145c2664d63e1eb3be8cc214e60309a (patch)
tree92ce3cefc654fa9df3b293b44f08c7b6e3540ff9
parent262c6501114dea56e7bcf3a5c9afe2f29e9e440f (diff)
downloadbuildstream-d0932ea34145c2664d63e1eb3be8cc214e60309a.tar.gz
Disable cachekey tests on other architectures than x86_64
-rw-r--r--tests/cachekey/cachekey.py4
-rw-r--r--tests/testutils/site.py2
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()