From 2588bedcfed8885805d4e466b60b2539635e3969 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Mon, 1 Jun 2020 22:44:29 -0400 Subject: [PATCH] debug: delete all existing containers --- tests/unit/test_helper.bash | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/unit/test_helper.bash b/tests/unit/test_helper.bash index c9ebc504d..cac706f9c 100644 --- a/tests/unit/test_helper.bash +++ b/tests/unit/test_helper.bash @@ -19,8 +19,11 @@ SKIPPED_TEST_ERR_MSG="previous test failed! skipping remaining tests..." # skips remaining tests on first failure global_setup() { [[ ! -f "${BATS_PARENT_TMPNAME}.skip" ]] || skip "$SKIPPED_TEST_ERR_MSG" + + dokku apps:list docker container ls free -m + docker container ls | xargs -n1 docker container rm || true } global_teardown() {