mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 05: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(["--kernel", kernel_path.to_str().unwrap()])
|
||||
.args(["--cmdline", DIRECT_KERNEL_BOOT_CMDLINE])
|
||||
.default_net()
|
||||
.default_disks()
|
||||
.capture_output()
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
thread::sleep(std::time::Duration::new(20, 0));
|
||||
guest.wait_vm_boot(None).unwrap();
|
||||
|
||||
let r = std::panic::catch_unwind(|| {
|
||||
let overhead = get_vmm_overhead(child.id(), guest_memory_size_kb);
|
||||
|
Loading…
Reference in New Issue
Block a user