From c0faa759227d2a1aefbd14a76633ef3cb11ab391 Mon Sep 17 00:00:00 2001 From: Bo Chen Date: Tue, 5 Dec 2023 10:18:32 -0800 Subject: [PATCH] tests: Print ExitStatus for 'test_serial_socket_interaction' This test has been failing fairly often on the AMD worker. Let's collect more log for debugging. Signed-off-by: Bo Chen --- tests/integration.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration.rs b/tests/integration.rs index 6a8b00685..f1915397e 100644 --- a/tests/integration.rs +++ b/tests/integration.rs @@ -4128,7 +4128,12 @@ mod common_parallel { let r = std::panic::catch_unwind(|| { // Check that the cloud-hypervisor binary actually terminated - assert!(output.status.success()) + if !output.status.success() { + panic!( + "Cloud Hypervisor process failed to terminate gracefully: {:?}", + output.status + ); + } }); handle_child_output(r, &output); }