]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: fix repeated runs of test-oomd-util by clearing test cgroup
authorLuca Boccassi <luca.boccassi@gmail.com>
Wed, 6 Aug 2025 13:07:26 +0000 (14:07 +0100)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 6 Aug 2025 13:09:33 +0000 (14:09 +0100)
commit0d333ed8e302e48efdfc26cb4c8e467a4863f460
tree0811e74973814a1c5c442edf3b62c56983c2ffaa
parent14cb1fba9130ccb6b8ed315211fe46e5e3f9cc88
test: fix repeated runs of test-oomd-util by clearing test cgroup

If the test is ran multiple times in a row, without an ephemeral
scope (eg: non-booted nspawn), then subsequent runs will fail as
the test cgroup is not cleared so the previous xattrs are still
present. Trim the test cgroup before and after the test.

Follow-up for 61ff7397d08375ce0950fb7b546c08e4a657f273
src/oom/test-oomd-util.c