(substr string, want int, timeout time.Duration)
| 246 | |
| 247 | func (h *cpHarness) cleanup(t *testing.T) { |
| 248 | t.Helper() |
| 249 | defer func() { |
| 250 | if t.Failed() { |
| 251 | t.Logf("Control plane logs:\n%s", h.logBuf.String()) |
| 252 | } |
| 253 | }() |
| 254 | |
| 255 | if h.cmd.Process == nil { |
| 256 | return |
| 257 | } |
| 258 | |
| 259 | // The CP was started with Setpgid: true, so it and all descendants |
| 260 | // (upgraded new CPs, all workers) share a process group. Killing |
no test coverage detected