fix(test): skip TestPrepareCommand_AppliesUserEnv on unsupported operating systems (#2434)
This commit is contained in:
1 parent
06023c79fa
commit
a9720daa45
1 file changed
+3
@@ -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")
|
||||
|
||||
Reference in new issue
Block a user