From: Yu Watanabe Date: Fri, 17 May 2024 04:25:25 +0000 (+0900) Subject: test: wait for slice unit being (de)activated X-Git-Tag: v256-rc3~47 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=272aae38f89d0c415a57370a624287cd5aeaec0b;p=thirdparty%2Fsystemd.git test: wait for slice unit being (de)activated Fixes #32731. --- diff --git a/test/units/TEST-15-DROPIN.sh b/test/units/TEST-15-DROPIN.sh index f5bd8d8af4a..5e4df52a4e4 100755 --- a/test/units/TEST-15-DROPIN.sh +++ b/test/units/TEST-15-DROPIN.sh @@ -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