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:
Bo Chen 2023-04-14 18:40:45 -07:00 committed by Rob Bradford
parent a9623c7a28
commit 04d111ee15

View File

@ -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();