test: make test-55-oomd less flaky
authorAnita Zhang <the.anitazha@gmail.com>
Wed, 24 Nov 2021 09:02:22 +0000 (01:02 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Fri, 26 Nov 2021 11:27:30 +0000 (12:27 +0100)
commitddc57d0a831cdd640db8edc47605bc27ca987ddf
tree4c59dc6497bc5daafbb3f2dc70455bb43def6f2b
parent993eeea0ef2c1d31ab22aa4ab53dbc6effdcbcfd
test: make test-55-oomd less flaky

Make oomctl a bit less likely to race with systemd-oomd receiving the
managed oom cgroup info by checking oomctl output in a loop with
timeout.

Fixes #21146
test/units/testsuite-55.sh