mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +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:
@@ -8871,11 +8871,12 @@ mod live_migration {
|
|||||||
let _ = dest_child.kill();
|
let _ = dest_child.kill();
|
||||||
let _ = ovs_child.kill();
|
let _ = ovs_child.kill();
|
||||||
let dest_output = dest_child.wait_with_output().unwrap();
|
let dest_output = dest_child.wait_with_output().unwrap();
|
||||||
handle_child_output(r, &dest_output);
|
|
||||||
let ovs_output = ovs_child.wait_with_output().unwrap();
|
let ovs_output = ovs_child.wait_with_output().unwrap();
|
||||||
handle_child_output(Ok(()), &ovs_output);
|
|
||||||
|
|
||||||
cleanup_ovs_dpdk();
|
cleanup_ovs_dpdk();
|
||||||
|
|
||||||
|
handle_child_output(r, &dest_output);
|
||||||
|
handle_child_output(Ok(()), &ovs_output);
|
||||||
}
|
}
|
||||||
|
|
||||||
mod live_migration_parallel {
|
mod live_migration_parallel {
|
||||||
|
|||||||
Reference in New Issue
Block a user