(t *testing.T)
| 207 | } |
| 208 | |
| 209 | func scriptPath(t *testing.T) string { |
| 210 | t.Helper() |
| 211 | p, err := filepath.Abs(filepath.Join("..", "..", "scripts", "install-refresh.sh")) |
| 212 | if err != nil { |
| 213 | t.Fatalf("abs: %v", err) |
| 214 | } |
| 215 | if _, err := os.Stat(p); err != nil { |
| 216 | t.Fatalf("script not found at %s: %v", p, err) |
| 217 | } |
| 218 | return p |
| 219 | } |
| 220 | |
| 221 | type stubEnv struct { |
| 222 | version string |
no test coverage detected