summaryrefslogtreecommitdiff
path: root/tests/integration/sandbox-bwrap.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/sandbox-bwrap.py')
-rw-r--r--tests/integration/sandbox-bwrap.py16
1 files changed, 4 insertions, 12 deletions
diff --git a/tests/integration/sandbox-bwrap.py b/tests/integration/sandbox-bwrap.py
index 6f33275e9..0c84ba888 100644
--- a/tests/integration/sandbox-bwrap.py
+++ b/tests/integration/sandbox-bwrap.py
@@ -33,8 +33,7 @@ def test_sandbox_bwrap_cleanup_build(cli, datafiles):
@pytest.mark.skipif(HAVE_SANDBOX != "bwrap", reason="Only available with bubblewrap")
@pytest.mark.skipif(
- not HAVE_BWRAP_JSON_STATUS,
- reason="Only available with bubblewrap supporting --json-status-fd",
+ not HAVE_BWRAP_JSON_STATUS, reason="Only available with bubblewrap supporting --json-status-fd",
)
@pytest.mark.datafiles(DATA_DIR)
def test_sandbox_bwrap_distinguish_setup_error(cli, datafiles):
@@ -42,9 +41,7 @@ def test_sandbox_bwrap_distinguish_setup_error(cli, datafiles):
element_name = "sandbox-bwrap/non-executable-shell.bst"
result = cli.run(project=project, args=["build", element_name])
- result.assert_task_error(
- error_domain=ErrorDomain.SANDBOX, error_reason="bwrap-sandbox-fail"
- )
+ result.assert_task_error(error_domain=ErrorDomain.SANDBOX, error_reason="bwrap-sandbox-fail")
@pytest.mark.skipif(HAVE_SANDBOX != "bwrap", reason="Only available with bubblewrap")
@@ -58,10 +55,5 @@ def test_sandbox_bwrap_return_subprocess(cli, datafiles):
)
result = cli.run(project=project, args=["build", element_name])
- result.assert_task_error(
- error_domain=ErrorDomain.SANDBOX, error_reason="command-failed"
- )
- assert (
- "sandbox-bwrap/command-exit-42.bst|Command failed with exitcode 42"
- in result.stderr
- )
+ result.assert_task_error(error_domain=ErrorDomain.SANDBOX, error_reason="command-failed")
+ assert "sandbox-bwrap/command-exit-42.bst|Command failed with exitcode 42" in result.stderr