Skip to content

Commit 79b675d

Browse files
test(copy): assert missing-source copy preserves guest error
Tighten the VM regression for apple/container#1927 so a failed copy-out from a missing guest path rejects internal coordination fallback errors before proving the container can exec afterward. Upstream-PR: apple#799 Fixes: apple/container#1927 Release-Highlight: Fixes apple/container#1927: copying a missing container path now fails promptly without blocking later exec, stop, or delete operations.
1 parent d8b9585 commit 79b675d

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

Sources/Integration/ContainerTests.swift

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2143,7 +2143,12 @@ extension IntegrationSuite {
21432143
} catch let error as IntegrationError {
21442144
throw error
21452145
} catch {
2146-
// The guest error shape is runtime-specific; returning promptly is the invariant.
2146+
let message = String(describing: error)
2147+
guard !message.contains("copyOut: no metadata received"),
2148+
!message.contains("copyOut: vsock connection not established")
2149+
else {
2150+
throw IntegrationError.assert(msg: "copyOut replaced the guest error with '\(message)'")
2151+
}
21472152
}
21482153

21492154
let exec = try await container.exec("after-missing-copy") { config in

0 commit comments

Comments
 (0)