Skip to content

Commit

Permalink
fix: remove tests cache directories on teardown (#234)
Browse files Browse the repository at this point in the history
* fix: remove tests cache directories on teardown

* Update test-helper.bash

* Update test-helper.bash
  • Loading branch information
aslafy-z authored Jan 4, 2023
1 parent 8c3bf9d commit 1501141
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tests/test-helper.bash
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,12 @@ setup() {
}

teardown() {
rm -rf "$HELM_HOME"
rm -rf "$HELM_GIT_OUTPUT"
[ "$BATS_TEST_COMPLETED" = "1" ] || {
rm -rf "$HELM_HOME"
rm -rf "$HELM_GIT_OUTPUT"
rm -rf "$HELM_CACHE_HOME"
rm -rf "$HELM_CONFIG_HOME"
}
}

enable_chart_cache() {
Expand Down

0 comments on commit 1501141

Please sign in to comment.