From 1b87ca4fe9e36c841a16883883b34b1472bec4af Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Mon, 21 Mar 2022 16:10:30 +0100 Subject: [PATCH] test: use a dropin to override the end.service unit instead of removing it. --- test/TEST-69-SHUTDOWN/test.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/test/TEST-69-SHUTDOWN/test.sh b/test/TEST-69-SHUTDOWN/test.sh index 39adedaea11..c7f78fe3c9b 100755 --- a/test/TEST-69-SHUTDOWN/test.sh +++ b/test/TEST-69-SHUTDOWN/test.sh @@ -24,7 +24,12 @@ EOF test_append_files() { local workspace="${1:?}" # prevent shutdown in test suite, the expect script does that manually. - rm "${workspace:?}/usr/lib/systemd/tests/testdata/units/end.service" + mkdir -p "${workspace:?}/etc/systemd/system/end.service.d" + cat >"$workspace/etc/systemd/system/end.service.d/99-override.conf" <>"$workspace/root/.bashrc" echo 'startup_message off' >"$workspace/etc/screenrc" -- 2.47.3