fix(test): skip TestPrepareCommand_AppliesUserEnv on unsupported operating systems

This commit is contained in:
wenjie 2026-04-09 09:49:40 +08:00
parent 06023c79fa
commit 773200520e

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")