Merge pull request #30955 from carloslima/fix-test-deleting-local-directories

Fix tests deleting XDG_DATA_HOME
pull/30957/head
Matt Farina 4 months ago committed by GitHub
commit 7031000b7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -20,12 +20,14 @@ import (
"path/filepath"
"testing"
"helm.sh/helm/v4/internal/test/ensure"
"helm.sh/helm/v4/pkg/helmpath"
)
var _ Installer = new(LocalInstaller)
func TestLocalInstaller(t *testing.T) {
ensure.HelmHome(t)
// Make a temp dir
tdir := t.TempDir()
if err := os.WriteFile(filepath.Join(tdir, "plugin.yaml"), []byte{}, 0644); err != nil {

Loading…
Cancel
Save