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
1 changed files with 12 additions and 0 deletions
|
|
@ -6238,6 +6238,18 @@ mod common_parallel {
|
|||
.unwrap_or_default(),
|
||||
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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue