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 <rbradford@meta.com>
This commit is contained in:
Rob Bradford
2026-04-20 13:04:59 +01:00
parent 466f50e72c
commit 92229a60ed

View File

@@ -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);
}