From e71ded29972ff2e6184c44567de6ca9f2bd7d5e9 Mon Sep 17 00:00:00 2001 From: Paul Holzinger Date: Fri, 5 Jun 2026 13:28:12 +0200 Subject: [PATCH] pkg/machine/e2e: set XDG_CONFIG_HOME This is basically a partial backport of commit b14e833ef6 ("machine: add test to check config mount"). It seems on the ubuntu github actions runners we have XDG_CONFIG_HOME set so the tests do not actually use its own private dir but a shared one for the configs which breaks the test assumptions. Signed-off-by: Paul Holzinger --- pkg/machine/e2e/machine_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/machine/e2e/machine_test.go b/pkg/machine/e2e/machine_test.go index 9504a834b3..69ba5017a6 100644 --- a/pkg/machine/e2e/machine_test.go +++ b/pkg/machine/e2e/machine_test.go @@ -145,6 +145,9 @@ func setup() (string, *machineTestBuilder) { Fail("unable to set home dir on windows") } } + if err := os.Setenv("XDG_CONFIG_HOME", filepath.Join(homeDir, ".config")); err != nil { + Fail("failed to set XDG_CONFIG_HOME dir") + } if err := os.Setenv("XDG_RUNTIME_DIR", homeDir); err != nil { Fail("failed to set xdg_runtime dir") }