From 92229a60eda74e07c3c579b9f7e65ba6c654bf9c Mon Sep 17 00:00:00 2001 From: Rob Bradford Date: Mon, 20 Apr 2026 13:04:59 +0100 Subject: [PATCH] tests: Report stderr/stdout from restored child in test_ovs_dpdk To aid debugging of this test failing print the output from the restored VMM instance too. Signed-off-by: Rob Bradford --- cloud-hypervisor/tests/integration.rs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/cloud-hypervisor/tests/integration.rs b/cloud-hypervisor/tests/integration.rs index f12b4a08a..3a7d4cd71 100644 --- a/cloud-hypervisor/tests/integration.rs +++ b/cloud-hypervisor/tests/integration.rs @@ -5398,10 +5398,21 @@ mod common_parallel { kill_child(&mut child2); let output = child1.wait_with_output().unwrap(); - child2.wait().unwrap(); + let output2 = child2.wait_with_output().unwrap(); cleanup_ovs_dpdk(); + if r.is_err() { + eprintln!( + "\n\n==== Start restored VM stdout ====\n\n{}\n\n==== End restored VM stdout ====", + String::from_utf8_lossy(&output2.stdout) + ); + eprintln!( + "\n\n==== Start restored VM stderr ====\n\n{}\n\n==== End restored VM stderr ====", + String::from_utf8_lossy(&output2.stderr) + ); + } + handle_child_output(r, &output); }