(p *libcontainer.Process, t testing.TB)
| 84 | } |
| 85 | |
| 86 | func waitProcess(p *libcontainer.Process, t testing.TB) { |
| 87 | t.Helper() |
| 88 | _, err := p.Wait() |
| 89 | if err != nil { |
| 90 | if stderr, ok := p.Stderr.(fmt.Stringer); ok { |
| 91 | err = fmt.Errorf("%w; stderr:\n%s", err, stderr) |
| 92 | } |
| 93 | t.Fatalf("command failed: %v", err) |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | // newRootfs creates a new tmp directory and copies the busybox root |
| 98 | // filesystem to it. |
no test coverage detected
searching dependent graphs…