]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Don't allocate scope if already running in unit with delegated cgroup 32387/head
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Sun, 21 Apr 2024 16:31:53 +0000 (18:31 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Mon, 22 Apr 2024 07:42:29 +0000 (09:42 +0200)
commit7a7d7a2e226d2484cc74d5b4f9a01deb74a77bea
treea8df01b51d14063778b0bb0def3d4b625d072629
parentb8c6c358040f097e45c90960500312a68ad60601
test: Don't allocate scope if already running in unit with delegated cgroup

If we're already running in a unit with delegation turned on, let's
skip allocation of a scope unit and cgroup subroot. This allows journald
to correctly attribute the logs of all subprocesses spawned by tests such
as test-execute to the test-execute service when the test is running in a service.
src/basic/log.c
src/basic/log.h
src/shared/tests.c