mirror of
https://github.com/systemd/systemd.git
synced 2025-01-11 09:18:07 +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
|
# 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"
|
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"
|
rm -rf "/var/lib/machines/$CONTAINER"
|
||||||
|
unset CONTAINER
|
||||||
fi
|
fi
|
||||||
|
|
||||||
coredumpctl
|
coredumpctl
|
||||||
|
Loading…
Reference in New Issue
Block a user