summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDaan De Meyer <daan.j.demeyer@gmail.com>2025-01-09 16:24:22 +0100
committerYu Watanabe <watanabe.yu+github@gmail.com>2025-01-10 06:58:56 +0100
commit96403d5121d93dd47dbe9dab5b90ff973e664ac3 (patch)
treedbc2169dcd00cd237c9590a61b9c25e106d7e06d /test
parentfmf: Move meson logs and failed test journals to test artifacts dir (#35939) (diff)
downloadsystemd-96403d5121d93dd47dbe9dab5b90ff973e664ac3.tar.xz
systemd-96403d5121d93dd47dbe9dab5b90ff973e664ac3.zip
tree-wide: Fix python formatting
The new release of ruff formats a few more things which causes linter failures in CI so let's fix those formatting nits.
Diffstat (limited to 'test')
-rwxr-xr-xtest/integration-test-wrapper.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/integration-test-wrapper.py b/test/integration-test-wrapper.py
index 5fa0325b88..d9d92fcba3 100755
--- a/test/integration-test-wrapper.py
+++ b/test/integration-test-wrapper.py
@@ -429,7 +429,7 @@ def main() -> None:
dropin += textwrap.dedent(
f"""
[Service]
- Environment=TEST_MATCH_SUBTEST={os.environ["TEST_MATCH_SUBTEST"]}
+ Environment=TEST_MATCH_SUBTEST={os.environ['TEST_MATCH_SUBTEST']}
"""
)
@@ -437,7 +437,7 @@ def main() -> None:
dropin += textwrap.dedent(
f"""
[Service]
- Environment=TEST_MATCH_TESTCASE={os.environ["TEST_MATCH_TESTCASE"]}
+ Environment=TEST_MATCH_TESTCASE={os.environ['TEST_MATCH_TESTCASE']}
"""
)
@@ -568,7 +568,7 @@ def main() -> None:
ops += [f'journalctl --file {journal_file} --no-hostname -o short-monotonic -u {args.unit} -p info']
- print("Test failed, relevant logs can be viewed with: \n\n" f"{(' && '.join(ops))}\n", file=sys.stderr)
+ print(f'Test failed, relevant logs can be viewed with: \n\n{(" && ".join(ops))}\n', file=sys.stderr)
# 0 also means we failed so translate that to a non-zero exit code to mark the test as failed.
exit(result.returncode or 1)