mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2025-01-22 12:35:19 +00:00
tests: Use "--disks" for vhost-user-block testing
Use newly unified command line options for testing vhost-user based block support. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
aeeae661fc
commit
12f4cd951a
28
src/main.rs
28
src/main.rs
@ -2771,16 +2771,13 @@ mod tests {
|
||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.args(&[
|
||||
"--vhost-user-blk",
|
||||
format!(
|
||||
"sock={},num_queues=1,queue_size=128,wce=true",
|
||||
"vhost_user=true,socket={},num_queues=1,queue_size=128,wce=true",
|
||||
vubd_socket_path
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
@ -2855,16 +2852,13 @@ mod tests {
|
||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.args(&[
|
||||
"--vhost-user-blk",
|
||||
format!(
|
||||
"sock={},num_queues=1,queue_size=128,wce=true",
|
||||
"vhost_user=true,socket={},num_queues=1,queue_size=128,wce=true",
|
||||
vubd_socket_path
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
@ -2932,16 +2926,13 @@ mod tests {
|
||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.args(&[
|
||||
"--vhost-user-blk",
|
||||
format!(
|
||||
"sock={},num_queues=1,queue_size=128,wce=true",
|
||||
"vhost_user=true,socket={},num_queues=1,queue_size=128,wce=true",
|
||||
vubd_socket_path
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
@ -3000,16 +2991,13 @@ mod tests {
|
||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.args(&[
|
||||
"--vhost-user-blk",
|
||||
format!(
|
||||
"sock={},num_queues=1,queue_size=128,wce=true",
|
||||
"vhost_user=true,socket={},num_queues=1,queue_size=128,wce=true",
|
||||
vubd_socket_path
|
||||
)
|
||||
.as_str(),
|
||||
])
|
||||
.args(&["--net", guest.default_net_string().as_str()])
|
||||
.spawn()
|
||||
.unwrap();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user