test: stop container when it is not necessary anymore

This commit is contained in:
Yu Watanabe 2024-05-21 02:54:06 +09:00
parent 688b701168
commit d67e86ed67

View file

@ -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