summaryrefslogtreecommitdiff
path: root/tests/examples/running-commands.py
diff options
context:
space:
mode:
authorBenjamin Schubert <ben.c.schubert@gmail.com>2019-02-28 18:47:20 +0000
committerBenjamin Schubert <ben.c.schubert@gmail.com>2019-02-28 18:47:20 +0000
commit6d4a4e9928bb718d2da446a7d6a11708301625f2 (patch)
treec4b25b736e26409a5d3eb3222d54fb1c7e445f0a /tests/examples/running-commands.py
parent348f04e7a80338de1b9cc911e48263d8cd31be65 (diff)
downloadbuildstream-bschubert/fix-test-paths.tar.gz
store full host tools command in sites.py variables check.bschubert/fix-test-paths
This allows tests importing them to have access to the commands directly and removes the need from calling this multiple times This also fixes multiple bugs where the paths of the tests runners might not be canonical and tools would not get found correctly
Diffstat (limited to 'tests/examples/running-commands.py')
-rw-r--r--tests/examples/running-commands.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/examples/running-commands.py b/tests/examples/running-commands.py
index 6290204a9..491a4fbe9 100644
--- a/tests/examples/running-commands.py
+++ b/tests/examples/running-commands.py
@@ -3,7 +3,7 @@ import pytest
from buildstream.plugintestutils import cli_integration as cli
from buildstream.plugintestutils.integration import assert_contains
-from tests.testutils.site import IS_LINUX, HAVE_BWRAP, MACHINE_ARCH
+from tests.testutils.site import IS_LINUX, BWRAP, MACHINE_ARCH
pytestmark = pytest.mark.integration
@@ -14,7 +14,7 @@ DATA_DIR = os.path.join(
@pytest.mark.skipif(MACHINE_ARCH != 'x86-64',
reason='Examples are writtent for x86-64')
-@pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap')
+@pytest.mark.skipif(not IS_LINUX or BWRAP is None, reason='Only available on linux with bubblewrap')
@pytest.mark.datafiles(DATA_DIR)
def test_running_commands_build(cli, tmpdir, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)
@@ -27,7 +27,7 @@ def test_running_commands_build(cli, tmpdir, datafiles):
# Test running the executable
@pytest.mark.skipif(MACHINE_ARCH != 'x86-64',
reason='Examples are writtent for x86-64')
-@pytest.mark.skipif(not IS_LINUX or not HAVE_BWRAP, reason='Only available on linux with bubblewrap')
+@pytest.mark.skipif(not IS_LINUX or BWRAP is None, reason='Only available on linux with bubblewrap')
@pytest.mark.datafiles(DATA_DIR)
def test_running_commands_run(cli, tmpdir, datafiles):
project = os.path.join(datafiles.dirname, datafiles.basename)