1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00

test: wait for slice unit being (de)activated

Fixes #32731.
This commit is contained in:
Yu Watanabe 2024-05-17 13:25:25 +09:00 committed by Daan De Meyer
parent d42b71213a
commit 272aae38f8

View File

@ -258,6 +258,8 @@ EOF
'MemoryMax' t 1000000002 \
0
timeout 1m bash -c 'until systemctl is-active a-b-c.slice; do sleep 1s; done'
# The override takes precedence for MemoryMax
check_ok a-b-c.slice MemoryMax "1000000000"
# The transient setting replaces the default
@ -275,6 +277,8 @@ EOF
StopUnit 'ss' \
'a-b-c.slice' 'replace'
timeout 1m bash -c 'while systemctl is-active a-b-c.slice; do sleep 1s; done'
rm -f "/run/systemd/system/$dropin/override.conf"
done