Tolerate container-builder-shim check fail (#1297)

- Previously we weren't tolerating a throw from
  the check.
- We have #1250 open for root cause analysis of
  this particular throw that trips the test up.
This commit is contained in:
jwhur
2026-03-06 16:42:12 -08:00
committed by GitHub
parent 71313ca3d9
commit 9b989f8d3f
@@ -45,10 +45,14 @@ class TestCLIBuildBase: CLITest {
var attempt = 3
while attempt > 0 {
attempt -= 1
let response = try doExec(name: buildkitName, cmd: ["pidof", "-s", "container-builder-shim"])
if !response.isEmpty {
// found the init process running
return
do {
let response = try doExec(name: buildkitName, cmd: ["pidof", "-s", "container-builder-shim"])
if !response.isEmpty {
// found the init process running
return
}
} catch {
print("container-builder-shim check failed with \(error)")
}
sleep(1)
}