summaryrefslogtreecommitdiff
path: root/tests/examples/developing.py
diff options
context:
space:
mode:
authorValentin David <valentin.david@codethink.co.uk>2018-11-12 14:22:17 +0100
committerValentin David <valentin.david@gmail.com>2018-11-14 11:43:33 +0000
commit85046b29000f9f61579413fffe8cac96a036ad9e (patch)
tree0fb9fbf0c5ca9f437a67699fa70617cf281f563d /tests/examples/developing.py
parent16b0148976b8a92c4ba7888e407cd4c5e26e0cae (diff)
downloadbuildstream-85046b29000f9f61579413fffe8cac96a036ad9e.tar.gz
Disable tests on example on other architectures than x86_64
Diffstat (limited to 'tests/examples/developing.py')
-rw-r--r--tests/examples/developing.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/examples/developing.py b/tests/examples/developing.py
index bca6ac61d..6c65c5e54 100644
--- a/tests/examples/developing.py
+++ b/tests/examples/developing.py
@@ -4,7 +4,7 @@ import pytest
import tests.testutils.patch as patch
from tests.testutils import cli_integration as cli
from tests.testutils.integration import assert_contains
-from tests.testutils.site import IS_LINUX
+from tests.testutils.site import IS_LINUX, MACHINE_ARCH
pytestmark = pytest.mark.integration
@@ -14,6 +14,8 @@ DATA_DIR = os.path.join(
# Test that the project builds successfully
+@pytest.mark.skipif(MACHINE_ARCH != 'x86_64',
+ reason='Examples are writtent for x86_64')
@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
@pytest.mark.datafiles(DATA_DIR)
def test_autotools_build(cli, tmpdir, datafiles):
@@ -35,6 +37,8 @@ def test_autotools_build(cli, tmpdir, datafiles):
# Test the unmodified hello command works as expected.
+@pytest.mark.skipif(MACHINE_ARCH != 'x86_64',
+ reason='Examples are writtent for x86_64')
@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
@pytest.mark.datafiles(DATA_DIR)
def test_run_unmodified_hello(cli, tmpdir, datafiles):
@@ -66,6 +70,8 @@ def test_open_workspace(cli, tmpdir, datafiles):
# Test making a change using the workspace
+@pytest.mark.skipif(MACHINE_ARCH != 'x86_64',
+ reason='Examples are writtent for x86_64')
@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
@pytest.mark.datafiles(DATA_DIR)
def test_make_change_in_workspace(cli, tmpdir, datafiles):