[pim/akonadi-e2e-tests] /: Have the akonadiconsole script suffixed with the instance id
Kevin Ottens <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 017e1e787de9b9df8ff66f0fbac4ff4877d38cb7 by Kevin Ottens.
Committed on 30/07/2026 at 12:15.
Pushed by ervin into branch 'master'.
Have the akonadiconsole script suffixed with the instance id
If we have several suites running in parallel we'd have a collision in
the filename otherwise. This could lead to errors, especially on test
cleanup which might not find the file if another suite already cleaned
it up.
M +1 -1 conftest.py
https://invent.kde.org/pim/akonadi-e2e-tests/-/commit/017e1e787de9b9df8ff66f0fbac4ff4877d38cb7
diff --git a/conftest.py b/conftest.py
index a4350e8..dcfe212 100644
--- a/conftest.py
+++ b/conftest.py
@@ -90,7 +90,7 @@ def akonadi_server(_akonadi_env: AkonadiEnv) -> Generator[AkonadiServer]:
server = AkonadiServer(_akonadi_env)
server.start()
root = Path(__file__).resolve().parent
- output_file = root / "akonadiconsole.sh"
+ output_file = root / f"akonadiconsole-{server.env.instance_id}.sh"
output_file.write_text("#!/bin/sh\n" + server.akonadiconsole_command() + "\n")
output_file.chmod(0o755)
yield server