agent: BUN_INSTALL is an agent folder variable; TestGrokInstalled's fake is not an MZ file (#3548)
Both were red on origin/main 2c644da04 on WSL (wsl-run, nogui).
TestFolderVarsAreListed: kirocrew.go reads BUN_INSTALL for its CLI search
path, but agentenv.Vars didn't list it, so no sandbox cleared it. Added.
TestGrokInstalled (#3548): the fake downloaded grok began with "MZ", which
WSL2's binfmt interop hands to the Windows loader (EINVAL), so the update
path reported "Invalid argument". On the non-Windows branch the fake now has
a body no loader claims, so exec gives ENOEXEC as on real Linux. The Windows
branch keeps MZ.
Run: both tests red before, green after at this change on WSL; gofmt, linux
and windows go vet of internal/agent and agentenv; -run "Grok|Update|Env|Kiro"
on internal/agent green. Not run: full suite, macOS.
This commit is contained in:
@@ -538,7 +538,7 @@ func TestGrokInstalled(t *testing.T) {
|
||||
if version != "" {
|
||||
name = "grok-" + version + "-" + platform
|
||||
}
|
||||
os.Chtimes(file(t, filepath.Join(home, ".grok/downloads", name), "MZ"), when, when)
|
||||
os.Chtimes(file(t, filepath.Join(home, ".grok/downloads", name), "not a program"), when, when)
|
||||
bin = filepath.Join(home, ".grok/bin/grok")
|
||||
os.Remove(bin)
|
||||
link(t, "../downloads/"+name, bin)
|
||||
|
||||
@@ -54,6 +54,8 @@ var Vars = []string{
|
||||
"STEP_CODING_AGENT_DIR", "STEPCODE_CONFIG_DIR",
|
||||
// MothX's config folder ($MOTHX_DIR/settings.json)
|
||||
"MOTHX_DIR",
|
||||
// Kiro Crew's CLI search path adds $BUN_INSTALL/bin
|
||||
"BUN_INSTALL",
|
||||
// Shelley's socket ($SHELLEY_SOCKET), which magpie tells it through
|
||||
"SHELLEY_SOCKET",
|
||||
// PenguinHarness's data root and the Project its CLI works in
|
||||
|
||||
Reference in New Issue
Block a user