mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user