* fix ci
This commit is contained in:
parent
6ac314b15d
commit
2bd127c244
2 changed files with 6 additions and 5 deletions
|
|
@ -218,13 +218,14 @@ func TestAgentLoop_MountProcessHook_IsolationSupportsRelativeDirAndCommand(t *te
|
||||||
t.Fatal(err)
|
t.Fatal(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
if err := al.MountProcessHook(context.Background(), "ipc-relative", ProcessHookOptions{
|
mountErr := al.MountProcessHook(context.Background(), "ipc-relative", ProcessHookOptions{
|
||||||
Command: []string{"./hook-helper", "-test.run=TestProcessHook_HelperProcess", "--"},
|
Command: []string{"./hook-helper", "-test.run=TestProcessHook_HelperProcess", "--"},
|
||||||
Dir: relHookDir,
|
Dir: relHookDir,
|
||||||
Env: processHookHelperEnv("rewrite", ""),
|
Env: processHookHelperEnv("rewrite", ""),
|
||||||
InterceptLLM: true,
|
InterceptLLM: true,
|
||||||
}); err != nil {
|
})
|
||||||
t.Fatalf("MountProcessHook failed with relative dir/command under isolation: %v", err)
|
if mountErr != nil {
|
||||||
|
t.Fatalf("MountProcessHook failed with relative dir/command under isolation: %v", mountErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
resp, err := al.runAgentLoop(context.Background(), agent, processOptions{
|
resp, err := al.runAgentLoop(context.Background(), agent, processOptions{
|
||||||
|
|
|
||||||
|
|
@ -59,8 +59,8 @@ func TestResolveLinuxWorkingDir_ResolvesRelativeDir(t *testing.T) {
|
||||||
t.Fatalf("restore cwd: %v", chdirErr)
|
t.Fatalf("restore cwd: %v", chdirErr)
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
if err := os.Chdir(cwd); err != nil {
|
if chdirErr := os.Chdir(cwd); chdirErr != nil {
|
||||||
t.Fatal(err)
|
t.Fatal(chdirErr)
|
||||||
}
|
}
|
||||||
|
|
||||||
resolvedDir, execDir, err := resolveLinuxWorkingDir("./hooks", "./hook.sh")
|
resolvedDir, execDir, err := resolveLinuxWorkingDir("./hooks", "./hook.sh")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue