mirror of
https://github.com/apple/container.git
synced 2026-09-22 15:45:38 +00:00
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:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user