summaryrefslogtreecommitdiff
path: root/tests/integration/cmake.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-20 17:35:17 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2018-11-20 18:10:48 +0000
commit57e6358fef757f9c9d3ff202442450dcb1d1ac32 (patch)
tree43458322429552e93c48131b74ca57ffff97d314 /tests/integration/cmake.py
parente030b48e84f84ae14c004bf830292e13a65a817f (diff)
downloadbuildstream-57e6358fef757f9c9d3ff202442450dcb1d1ac32.tar.gz
Ensure tests requiring bubblewrap are correctly marked
Diffstat (limited to 'tests/integration/cmake.py')
-rw-r--r--tests/integration/cmake.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py
index e74958b91..d5d1a1695 100644
--- a/tests/integration/cmake.py
+++ b/tests/integration/cmake.py
@@ -3,6 +3,7 @@ import pytest
from tests.testutils import cli_integration as cli
from tests.testutils.integration import assert_contains
+from tests.testutils.site import HAVE_BWRAP, IS_LINUX
pytestmark = pytest.mark.integration
@@ -15,6 +16,7 @@ DATA_DIR = os.path.join(
@pytest.mark.datafiles(DATA_DIR)
+@pytest.mark.skipif(IS_LINUX and not HAVE_BWRAP, reason='Only available with bubblewrap on Linux')
def test_cmake_build(cli, tmpdir, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)
checkout = os.path.join(cli.directory, 'checkout')
@@ -33,6 +35,7 @@ def test_cmake_build(cli, tmpdir, datafiles):
@pytest.mark.datafiles(DATA_DIR)
+@pytest.mark.skipif(IS_LINUX and not HAVE_BWRAP, reason='Only available with bubblewrap on Linux')
def test_cmake_confroot_build(cli, tmpdir, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)
checkout = os.path.join(cli.directory, 'checkout')
@@ -51,6 +54,7 @@ def test_cmake_confroot_build(cli, tmpdir, datafiles):
@pytest.mark.datafiles(DATA_DIR)
+@pytest.mark.skipif(IS_LINUX and not HAVE_BWRAP, reason='Only available with bubblewrap on Linux')
def test_cmake_run(cli, tmpdir, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)
element_name = 'cmake/cmakehello.bst'