]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: make coverage runs happy with capsule@.service
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 28 Mar 2024 13:57:26 +0000 (14:57 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Thu, 28 Mar 2024 23:29:46 +0000 (23:29 +0000)
capsule@.service uses DynamicUser=yes, so let's use the same tweak we
use for other such units.

test/test-functions

index 0c0ffa1545edcceea60ee99a2d4dfc65286fcceb..112f8b065c70289eae886cb6ea39e71b16db69f3 100644 (file)
@@ -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