tox-dev / tox-docker

A tox plugin to run one or more Docker containers during tests

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ensure all containers we've started are cleaned up on exit

dcrosta opened this issue · comments

At least one known case where this doesn't happen today is if we raise an exception during the tox_runtest_pre hook; this will abort the tox run and fail to do the cleanup in tox_runtest_post.

This does not have to handle cases of e.g. the user hitting Ctrl-C during a test run.