提交记录修改internal/diagnostics/diagnostics_test.go+3 −0看文件
修改internal/workbench/claude_desktop_test.go+4 −0看文件
| @@ -179,6 +179,9 @@ func TestGuestRunnerSharesRedactionAndExitStatus(t *testing.T) { | ||
| 179 | 179 | if _, err := exec.LookPath("uv"); err != nil { |
| 180 | 180 | t.Skip("uv unavailable") |
| 181 | 181 | } |
| 182 | 新增: // CI runs this fixture as an ordinary user; setup-uv's inherited cache | |
| 183 | 新增: // can belong to the root account that installed the build dependencies. | |
| 184 | 新增: t.Setenv("UV_CACHE_DIR", t.TempDir()) | |
| 182 | 185 | script := filepath.Join(t.TempDir(), "runner.py") |
| 183 | 186 | _ = os.WriteFile(script, []byte(GuestRunner()), 0600) |
| 184 | 187 | cmd := exec.Command("uv", "run", "--no-project", "python", script, "/bin/sh", "-c", `printf 'Cookie: one=first-secret; two=second-secret\nhttps://user:[email protected]/secret\nsafe-line\n'; exit 7`) |
| @@ -5,10 +5,14 @@ import ( | ||
| 5 | 5 | "os" |
| 6 | 6 | "os/exec" |
| 7 | 7 | "path/filepath" |
| 8 | 新增: "runtime" | |
| 8 | 9 | "testing" |
| 9 | 10 | ) |
| 10 | 11 | |
| 11 | 12 | func TestClaudeDesktopSnapshotFailureReason(t *testing.T) { |
| 13 | 新增: if runtime.GOOS == "windows" { | |
| 14 | 新增: t.Skip("snapshot executes in the Linux guest; fixture requires POSIX executables") | |
| 15 | 新增: } | |
| 12 | 16 | if _, err := exec.LookPath("python3"); err != nil { |
| 13 | 17 | t.Skip("python3 unavailable") |
| 14 | 18 | } |

