mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
tests: Extend '_test_macvtap()' with reboot
In this way, we can cover the scenario where a VM with hotplugged net device using FDs can work properly with reboot. Signed-off-by: Bo Chen <chen.bo@intel.com>
This commit is contained in:
parent
a9623c7a28
commit
04d111ee15
@ -6238,6 +6238,18 @@ mod common_parallel {
|
|||||||
.unwrap_or_default(),
|
.unwrap_or_default(),
|
||||||
2
|
2
|
||||||
);
|
);
|
||||||
|
|
||||||
|
guest.reboot_linux(0, None);
|
||||||
|
|
||||||
|
assert_eq!(
|
||||||
|
guest
|
||||||
|
.ssh_command("ip -o link | wc -l")
|
||||||
|
.unwrap()
|
||||||
|
.trim()
|
||||||
|
.parse::<u32>()
|
||||||
|
.unwrap_or_default(),
|
||||||
|
2
|
||||||
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
let _ = child.kill();
|
let _ = child.kill();
|
||||||
|
Loading…
Reference in New Issue
Block a user