From a9720daa45c2bd34542d1440401417fe5c8f4603 Mon Sep 17 00:00:00 2001 From: wenjie Date: Thu, 9 Apr 2026 10:14:08 +0800 Subject: [PATCH] fix(test): skip TestPrepareCommand_AppliesUserEnv on unsupported operating systems (#2434) --- pkg/isolation/runtime_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/isolation/runtime_test.go b/pkg/isolation/runtime_test.go index 213c4b065..aca484bba 100644 --- a/pkg/isolation/runtime_test.go +++ b/pkg/isolation/runtime_test.go @@ -212,6 +212,9 @@ func TestExistingExposePaths_SkipsMissingPaths(t *testing.T) { } func TestPrepareCommand_AppliesUserEnv(t *testing.T) { + if !isSupportedOn(runtime.GOOS) { + t.Skipf("isolation not supported on %s", runtime.GOOS) + } t.Setenv(config.EnvHome, filepath.Join(t.TempDir(), "home")) if runtime.GOOS == "linux" { binDir := filepath.Join(t.TempDir(), "bin")