]> git.ipfire.org Git - thirdparty/systemd.git/commit
test: Ensure delegation test unit has memory controller
authorMichal Koutný <mkoutny@suse.com>
Thu, 23 May 2024 16:01:24 +0000 (18:01 +0200)
committerMichal Koutný <mkoutny@suse.com>
Thu, 23 May 2024 16:05:25 +0000 (18:05 +0200)
commit8fd755ffe674ee2fe774a8052878f3e1104871f1
tree610fb878719aba81569a88e492340ee561ddfc31
parent87ed87efe1f2b5566a50939d328f39a1064b5f5b
test: Ensure delegation test unit has memory controller

When the test used to be run on distro that doesn't enable memory
accounting by default (such as openSUSE TW), there is no guarantee that
testing unit has memory.* cgroup attributes and delegation test would
fail if they are missing.

Require memory controller explicitly inside the unit so that test can
work in any environment.
test/units/TEST-19-CGROUP.delegate.sh