Merge pull request #3543 from adshmh/fix-left-over-repotest-dirs-from-tests

Clean up temporary "helm-repotest-*" directories left behind by tests under cmd/helm
pull/2919/merge
Matthew Fisher 7 years ago committed by GitHub
commit 5e2362e008
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -36,7 +36,7 @@ func TestRepoAddCmd(t *testing.T) {
cleanup := resetEnv() cleanup := resetEnv()
defer func() { defer func() {
srv.Stop() srv.Stop()
os.Remove(thome.String()) os.RemoveAll(thome.String())
cleanup() cleanup()
}() }()
if err := ensureTestHome(thome, t); err != nil { if err := ensureTestHome(thome, t); err != nil {
@ -72,7 +72,7 @@ func TestRepoAdd(t *testing.T) {
hh := thome hh := thome
defer func() { defer func() {
ts.Stop() ts.Stop()
os.Remove(thome.String()) os.RemoveAll(thome.String())
cleanup() cleanup()
}() }()
if err := ensureTestHome(hh, t); err != nil { if err := ensureTestHome(hh, t); err != nil {

@ -37,7 +37,7 @@ func TestRepoRemove(t *testing.T) {
cleanup := resetEnv() cleanup := resetEnv()
defer func() { defer func() {
ts.Stop() ts.Stop()
os.Remove(thome.String()) os.RemoveAll(thome.String())
cleanup() cleanup()
}() }()
if err := ensureTestHome(hh, t); err != nil { if err := ensureTestHome(hh, t); err != nil {

@ -75,7 +75,7 @@ func TestUpdateCharts(t *testing.T) {
cleanup := resetEnv() cleanup := resetEnv()
defer func() { defer func() {
ts.Stop() ts.Stop()
os.Remove(thome.String()) os.RemoveAll(thome.String())
cleanup() cleanup()
}() }()
if err := ensureTestHome(hh, t); err != nil { if err := ensureTestHome(hh, t); err != nil {

Loading…
Cancel
Save