From: Frantisek Sumsal Date: Mon, 21 Mar 2022 15:10:30 +0000 (+0100) Subject: test: use a dropin to override the end.service unit X-Git-Tag: v251-rc1~84^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F22804%2Fhead;p=thirdparty%2Fsystemd.git test: use a dropin to override the end.service unit instead of removing it. --- 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"