arch: use hypervsisor::new in test cases

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2020-07-14 11:41:20 +00:00
committed by Samuel Ortiz
parent 085d165f8a
commit 11ffc83365
5 changed files with 9 additions and 18 deletions
+1 -2
View File
@@ -650,8 +650,7 @@ mod tests {
.cloned()
.collect();
let kvm = hypervisor::kvm::KvmHypervisor::new().unwrap();
let hv: Arc<dyn hypervisor::Hypervisor> = Arc::new(kvm);
let hv = hypervisor::new().unwrap();
let vm = hv.create_vm().unwrap();
let gic = create_gic(&vm, 1, false).unwrap();
assert!(create_fdt(