Skip to content

Commit

Permalink
Merge pull request #51 from containers/tests-faster-cleanup
Browse files Browse the repository at this point in the history
tests/env.sh: Make VM cleanup faster
  • Loading branch information
albertofaria authored Apr 17, 2024
2 parents c5af553 + 6cce289 commit 27d5818
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -395,6 +395,9 @@ run)

full_script="\
set -o errexit -o pipefail -o nounset
${engine_cmd[*]} ps --filter label=$label --format '{{.Names}}' |
xargs --no-run-if-empty ${engine_cmd[*]} stop --time 0 \
>/dev/null 2>&1
${engine_cmd[*]} ps --filter label=$label --format '{{.Names}}' --all |
xargs --no-run-if-empty ${engine_cmd[*]} rm --force
sudo rm -fr $label.temp $label.util
Expand Down

0 comments on commit 27d5818

Please sign in to comment.