mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-21 20:15:21 +00:00
tests: live-migration: Cleanup ovs-dpdk setup correctly on failures
As 'handle_child_output()' may terminate the test on panic, we need to cleanup ovs-dpdk setup in advance. see: #4555 Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
742d6858f7
commit
6cf4ea74fc
@ -8871,11 +8871,12 @@ mod live_migration {
|
||||
let _ = dest_child.kill();
|
||||
let _ = ovs_child.kill();
|
||||
let dest_output = dest_child.wait_with_output().unwrap();
|
||||
handle_child_output(r, &dest_output);
|
||||
let ovs_output = ovs_child.wait_with_output().unwrap();
|
||||
handle_child_output(Ok(()), &ovs_output);
|
||||
|
||||
cleanup_ovs_dpdk();
|
||||
|
||||
handle_child_output(r, &dest_output);
|
||||
handle_child_output(Ok(()), &ovs_output);
|
||||
}
|
||||
|
||||
mod live_migration_parallel {
|
||||
|
Loading…
x
Reference in New Issue
Block a user