]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: Skip private /tmp for generators in manager test runs
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 15 May 2024 18:54:33 +0000 (20:54 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 16 May 2024 08:17:00 +0000 (10:17 +0200)
commit452f91d8469882f623c3b2c637ce85037ec73621
tree752434b7fc30b7ef8dc228207d041a19cf96bfe3
parent742ee96dbe7b0083f4fb23da300940ea000ec6ff
core: Skip private /tmp for generators in manager test runs

For manager test runs, the generator output paths are located in
/tmp, which means that if we mount a private /tmp for generators,
we lose all the generated units (actually the generators will just
fail because the directories don't exist, but if they did exist,
we'd still lose all the units).

Let's avoid the problem by skipping the private /tmp for manager
test runs. This also avoids any possible privilege issues with
mounting a private /tmp that might happen in this scenario.
src/core/manager.c
test/units/TEST-65-ANALYZE.sh