... |
... |
@@ -3,7 +3,7 @@ import pytest |
3
|
3
|
|
4
|
4
|
from tests.testutils import cli_integration as cli
|
5
|
5
|
from tests.testutils.integration import assert_contains
|
6
|
|
-from tests.testutils.site import IS_LINUX
|
|
6
|
+from tests.testutils.site import HAVE_BWRAP, IS_LINUX
|
7
|
7
|
|
8
|
8
|
pytestmark = pytest.mark.integration
|
9
|
9
|
|
... |
... |
@@ -13,7 +13,7 @@ DATA_DIR = os.path.join( |
13
|
13
|
|
14
|
14
|
|
15
|
15
|
# Tests a build of the autotools amhello project on a alpine-linux base runtime
|
16
|
|
-@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
|
|
16
|
+@pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap')
|
17
|
17
|
@pytest.mark.datafiles(DATA_DIR)
|
18
|
18
|
def test_project_build_projcet(cli, tmpdir, datafiles):
|
19
|
19
|
project = os.path.join(datafiles.dirname, datafiles.basename)
|
... |
... |
@@ -32,7 +32,7 @@ def test_project_build_projcet(cli, tmpdir, datafiles): |
32
|
32
|
|
33
|
33
|
|
34
|
34
|
# Tests a build of the autotools amhello project on a alpine-linux base runtime
|
35
|
|
-@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
|
|
35
|
+@pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap')
|
36
|
36
|
@pytest.mark.datafiles(DATA_DIR)
|
37
|
37
|
def test_project_build_main(cli, tmpdir, datafiles):
|
38
|
38
|
project = os.path.join(datafiles.dirname, datafiles.basename)
|
... |
... |
@@ -51,7 +51,7 @@ def test_project_build_main(cli, tmpdir, datafiles): |
51
|
51
|
|
52
|
52
|
|
53
|
53
|
# Test running an executable built with autotools.
|
54
|
|
-@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
|
|
54
|
+@pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap')
|
55
|
55
|
@pytest.mark.datafiles(DATA_DIR)
|
56
|
56
|
def test_run_project(cli, tmpdir, datafiles):
|
57
|
57
|
project = os.path.join(datafiles.dirname, datafiles.basename)
|
... |
... |
@@ -65,7 +65,7 @@ def test_run_project(cli, tmpdir, datafiles): |
65
|
65
|
|
66
|
66
|
|
67
|
67
|
# Test running an executable built with autotools.
|
68
|
|
-@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux')
|
|
68
|
+@pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap')
|
69
|
69
|
@pytest.mark.datafiles(DATA_DIR)
|
70
|
70
|
def test_run_main(cli, tmpdir, datafiles):
|
71
|
71
|
project = os.path.join(datafiles.dirname, datafiles.basename)
|