mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +03:00
test: stop container when it is not necessary anymore
This commit is contained in:
parent
688b701168
commit
d67e86ed67
@ -105,7 +105,9 @@ EOF
|
||||
# Wait a bit for the coredumps to get processed
|
||||
timeout 30 bash -c "while [[ \$(systemd-run -M $CONTAINER -q --wait --pipe coredumpctl list -q --no-legend /usr/bin/sleep | wc -l) -lt 2 ]]; do sleep 1; done"
|
||||
|
||||
machinectl stop "$CONTAINER"
|
||||
rm -rf "/var/lib/machines/$CONTAINER"
|
||||
unset CONTAINER
|
||||
fi
|
||||
|
||||
coredumpctl
|
||||
|
Loading…
Reference in New Issue
Block a user