From: Yu Watanabe Date: Mon, 20 May 2024 17:54:06 +0000 (+0900) Subject: test: stop container when it is not necessary anymore X-Git-Tag: v256-rc3~13^2~4 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d67e86ed67bd0708379721cd5096d84509de7488;p=thirdparty%2Fsystemd.git test: stop container when it is not necessary anymore --- diff --git a/test/units/TEST-74-AUX-UTILS.coredump.sh b/test/units/TEST-74-AUX-UTILS.coredump.sh index 3f3571639e3..b9c8fde2a33 100755 --- a/test/units/TEST-74-AUX-UTILS.coredump.sh +++ b/test/units/TEST-74-AUX-UTILS.coredump.sh @@ -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