mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-26 14:35:20 +00:00
tests: test_memory_overhead: use guest.vm_wait_boot
See: #5738 Signed-off-by: Ruslan Mstoi <ruslan.mstoi@intel.com>
This commit is contained in:
parent
0d9749282a
commit
49e342314d
@ -4848,12 +4848,13 @@ mod common_parallel {
|
|||||||
.args(["--memory", format!("size={guest_memory_size_kb}K").as_str()])
|
.args(["--memory", format!("size={guest_memory_size_kb}K").as_str()])
|
||||||
.args(["--kernel", kernel_path.to_str().unwrap()])
|
.args(["--kernel", kernel_path.to_str().unwrap()])
|
||||||
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
||||||
|
.default_net()
|
||||||
.default_disks()
|
.default_disks()
|
||||||
.capture_output()
|
.capture_output()
|
||||||
.spawn()
|
.spawn()
|
||||||
.unwrap();
|
.unwrap();
|
||||||
|
|
||||||
thread::sleep(std::time::Duration::new(20, 0));
|
guest.wait_vm_boot(None).unwrap();
|
||||||
|
|
||||||
let r = std::panic::catch_unwind(|| {
|
let r = std::panic::catch_unwind(|| {
|
||||||
let overhead = get_vmm_overhead(child.id(), guest_memory_size_kb);
|
let overhead = get_vmm_overhead(child.id(), guest_memory_size_kb);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user