From 3b36a48b7ce5a53a9366f3b31f94311f178e2553 Mon Sep 17 00:00:00 2001 From: Lukasz Kasprzak Date: Sat, 12 Sep 2026 01:22:12 +0200 Subject: krino: matching — scan, ignore, conditions, extraction, duplicates, explain, dry run MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cmd/krino/commands_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'cmd/krino/commands_test.go') diff --git a/cmd/krino/commands_test.go b/cmd/krino/commands_test.go index 68a2174..2156da2 100644 --- a/cmd/krino/commands_test.go +++ b/cmd/krino/commands_test.go @@ -9,12 +9,14 @@ import ( "testing" ) -// home gives each test its own HOME with an empty XDG config. +// home gives each test its own HOME with no XDG overrides. func home(t *testing.T) string { t.Helper() h := t.TempDir() t.Setenv("HOME", h) - t.Setenv("XDG_CONFIG_HOME", "") + for _, v := range []string{"XDG_CONFIG_HOME", "XDG_STATE_HOME", "XDG_DATA_HOME", "XDG_CACHE_HOME"} { + t.Setenv(v, "") + } return h } -- cgit v1.3