From: Frantisek Sumsal Date: Thu, 28 Mar 2024 13:57:26 +0000 (+0100) Subject: test: make coverage runs happy with capsule@.service X-Git-Tag: v256-rc1~363 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=607be850b9f67b061b3893939ab3874273e499b8;p=thirdparty%2Fsystemd.git test: make coverage runs happy with capsule@.service capsule@.service uses DynamicUser=yes, so let's use the same tweak we use for other such units. --- diff --git a/test/test-functions b/test/test-functions index 0c0ffa1545e..112f8b065c7 100644 --- a/test/test-functions +++ b/test/test-functions @@ -1494,7 +1494,7 @@ install_systemd() { # units using DynamicUser=yes. Do this only for services with test- prefix and a couple of # known-to-use DynamicUser=yes services, as setting this system-wide has many undesirable # side-effects, as it creates its own namespace. - for service in test- systemd-journal-{gatewayd,upload}; do + for service in capsule@ test- systemd-journal-{gatewayd,upload}; do mkdir -p "$initdir/etc/systemd/system/$service.service.d/" echo -ne "[Service]\nReadWritePaths=${BUILD_DIR:?}\n" >"$initdir/etc/systemd/system/$service.service.d/99-gcov-rwpaths-override.conf" done