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:
Bo Chen 2022-08-31 11:30:41 -07:00 committed by Sebastien Boeuf
parent 742d6858f7
commit 6cf4ea74fc

View File

@ -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 {