fix(test): skip TestPrepareCommand_AppliesUserEnv on unsupported operating systems (#2434)

This commit is contained in:
wenjie
2026-04-09 10:14:08 +08:00
committed by GitHub
parent 06023c79fa
commit a9720daa45
+3
View File
@@ -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")