Skip to content

Commit

Permalink
test: wait for slice unit being (de)activated
Browse files Browse the repository at this point in the history
Fixes #32731.
  • Loading branch information
yuwata authored and DaanDeMeyer committed May 17, 2024
1 parent d42b712 commit 272aae3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/units/TEST-15-DROPIN.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

Expand Down

0 comments on commit 272aae3

Please sign in to comment.