Two integration test fixes (#35937)

This commit is contained in:
Daan De Meyer
2025-01-09 12:25:41 +01:00
committed by GitHub
3 changed files with 10 additions and 3 deletions

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env bash
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
set -eu
set -o pipefail
case "$1" in

View File

@@ -459,6 +459,15 @@ def main() -> None:
"""
)
if sys.stderr.isatty():
dropin += textwrap.dedent(
"""
[Service]
ExecStartPre=/usr/lib/systemd/tests/testdata/integration-test-setup.sh setup
ExecStopPost=/usr/lib/systemd/tests/testdata/integration-test-setup.sh finalize
"""
)
cmd = [
args.mkosi,
'--directory', os.fspath(args.meson_source_dir),

View File

@@ -7,9 +7,7 @@ Before=getty-pre.target
[Service]
ExecStartPre=rm -f /failed /testok
ExecStartPre=/usr/lib/systemd/tests/testdata/integration-test-setup.sh setup
ExecStart=@command@
ExecStopPost=/usr/lib/systemd/tests/testdata/integration-test-setup.sh finalize
Type=oneshot
MemoryAccounting=@memory-accounting@
StateDirectory=%N