diff options
| author | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-12 01:22:12 +0200 |
|---|---|---|
| committer | Lukasz Kasprzak <lukas@labunix.xyz> | 2026-09-12 01:22:12 +0200 |
| commit | 3b36a48b7ce5a53a9366f3b31f94311f178e2553 (patch) | |
| tree | ecbb277ff916b719f2ee45fba017792b85d5faf9 /cmd/krino/commands_test.go | |
| parent | 42b02c47be9b285099203e44a2570636d4ca6f03 (diff) | |
| download | krino-3b36a48b7ce5a53a9366f3b31f94311f178e2553.tar.gz krino-3b36a48b7ce5a53a9366f3b31f94311f178e2553.zip | |
krino: matching — scan, ignore, conditions, extraction, duplicates, explain, dry run
Diffstat (limited to 'cmd/krino/commands_test.go')
| -rw-r--r-- | cmd/krino/commands_test.go | 6 |
1 files changed, 4 insertions, 2 deletions
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 } |
