diff --git a/internal/agent/jcode_test.go b/internal/agent/jcode_test.go index 86fe8bb08..f94c1d8fa 100644 --- a/internal/agent/jcode_test.go +++ b/internal/agent/jcode_test.go @@ -284,6 +284,7 @@ X-Team = "mine" // the file while jcode still starts on it is said. func TestJcodeHome(t *testing.T) { home, _ := jcodeHome(t, "") + t.Setenv("PATH", t.TempDir()) // no jcode on PATH: only its folder tells (#1646) dir := filepath.Join(home, "elsewhere") t.Setenv("JCODE_HOME", dir) a := jcode(home) diff --git a/internal/agent/omo_test.go b/internal/agent/omo_test.go index b8c2a6aed..7a40affb8 100644 --- a/internal/agent/omo_test.go +++ b/internal/agent/omo_test.go @@ -18,6 +18,7 @@ import ( // Pi's ~/.pi is left alone; its own model takes magpie out again. func TestOmo(t *testing.T) { home := syncHome(t) + t.Setenv("PATH", t.TempDir()) // no omo on PATH: only its folder tells (#1646) var a *Agent for _, x := range All() { if x.ID == "omo" {