runtime-rs: add unit test for block driver

add unit test for block driver

Fixes:#7539
Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
This commit is contained in:
Zhongtao Hu
2023-08-15 19:23:27 +08:00
parent e44919f0da
commit d90f7ac689
6 changed files with 67 additions and 4 deletions

View File

@@ -28,9 +28,6 @@ mod tests {
async fn get_device_manager() -> Result<Arc<RwLock<DeviceManager>>> {
let hypervisor_name: &str = "qemu";
if let Err(e) = load_test_config(hypervisor_name.to_owned()) {
println!("Test failed with error: {}", e);
}
let toml_config = load_test_config(hypervisor_name.to_owned())?;
let hypervisor_config = toml_config
.hypervisor