Skip to content

Commit 874b16f

Browse files
Enrique SaurezCopilot
andcommitted
host: reconcile the external launcher with verified exit results
Preserve the complete owned-command and strict-log-job handoff while replaying the PR onto the current feature input. Treat a missing exit proof as a timeout and propagate the outcome reader error before checking for a missing report. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: d5cb71c8-5f7f-4248-836b-4aae842c213d
1 parent 0368070 commit 874b16f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎nvx-rs/examples/external-launch.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ fn main() -> Result<(), Box<dyn Error>> {
106106
Some(deadline.saturating_duration_since(Instant::now())),
107107
)?;
108108
read_until(console.as_mut(), b"\nNVX-EXTERNAL-LAUNCH-OK", deadline)?;
109-
if !process.wait(deadline)? {
109+
if process.wait(deadline)?.is_none() {
110110
return Err(io::Error::new(io::ErrorKind::TimedOut, "VM did not exit").into());
111111
}
112112
match launched.wait_timeout(Duration::ZERO)? {
@@ -116,7 +116,7 @@ fn main() -> Result<(), Box<dyn Error>> {
116116
}
117117
None => return Err(io::Error::other("VMM exit status is unavailable").into()),
118118
}
119-
let outcome = report::read(&outputs.outcome)
119+
let outcome = report::read(&outputs.outcome)?
120120
.ok_or_else(|| io::Error::other("missing or invalid VM outcome"))?;
121121
if outcome.category.as_deref() != Some("success")
122122
|| outcome.status_code != Some(0)

0 commit comments

Comments
 (0)