diff options
Diffstat (limited to 'tests/examples/integration-commands.py')
-rw-r--r-- | tests/examples/integration-commands.py | 25 |
1 files changed, 6 insertions, 19 deletions
diff --git a/tests/examples/integration-commands.py b/tests/examples/integration-commands.py index fac45fd22..257ecc44f 100644 --- a/tests/examples/integration-commands.py +++ b/tests/examples/integration-commands.py @@ -10,22 +10,14 @@ from buildstream.testing._utils.site import IS_LINUX, MACHINE_ARCH, HAVE_SANDBOX pytestmark = pytest.mark.integration DATA_DIR = os.path.join( - os.path.dirname(os.path.realpath(__file__)), - "..", - "..", - "doc", - "examples", - "integration-commands", + os.path.dirname(os.path.realpath(__file__)), "..", "..", "doc", "examples", "integration-commands", ) @pytest.mark.skipif(MACHINE_ARCH != "x86-64", reason="Examples are written for x86-64") +@pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason="Only available on linux with sandbox") @pytest.mark.skipif( - not IS_LINUX or not HAVE_SANDBOX, reason="Only available on linux with sandbox" -) -@pytest.mark.skipif( - HAVE_SANDBOX == "chroot", - reason="This test is not meant to work with chroot sandbox", + HAVE_SANDBOX == "chroot", reason="This test is not meant to work with chroot sandbox", ) @pytest.mark.datafiles(DATA_DIR) def test_integration_commands_build(cli, datafiles): @@ -37,12 +29,9 @@ def test_integration_commands_build(cli, datafiles): # Test running the executable @pytest.mark.skipif(MACHINE_ARCH != "x86-64", reason="Examples are written for x86-64") +@pytest.mark.skipif(not IS_LINUX or not HAVE_SANDBOX, reason="Only available on linux with sandbox") @pytest.mark.skipif( - not IS_LINUX or not HAVE_SANDBOX, reason="Only available on linux with sandbox" -) -@pytest.mark.skipif( - HAVE_SANDBOX == "chroot", - reason="This test is not meant to work with chroot sandbox", + HAVE_SANDBOX == "chroot", reason="This test is not meant to work with chroot sandbox", ) @pytest.mark.datafiles(DATA_DIR) def test_integration_commands_run(cli, datafiles): @@ -51,8 +40,6 @@ def test_integration_commands_run(cli, datafiles): result = cli.run(project=project, args=["build", "hello.bst"]) assert result.exit_code == 0 - result = cli.run( - project=project, args=["shell", "hello.bst", "--", "hello", "pony"] - ) + result = cli.run(project=project, args=["shell", "hello.bst", "--", "hello", "pony"]) assert result.exit_code == 0 assert result.output == "Hello pony\n" |