mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
tests: Fix clippy: uninlined_format_args
Replace format arguments with inlined versions. Signed-off-by: Rob Bradford <rbradford@meta.com>
This commit is contained in:
@@ -80,7 +80,7 @@ impl TargetApi {
|
|||||||
if output.status.success() {
|
if output.status.success() {
|
||||||
true
|
true
|
||||||
} else {
|
} else {
|
||||||
eprintln!("Error running ch-remote command: {:?}", &cmd);
|
eprintln!("Error running ch-remote command: {cmd:?}");
|
||||||
let stderr = String::from_utf8_lossy(&output.stderr);
|
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||||
eprintln!("stderr: {stderr}");
|
eprintln!("stderr: {stderr}");
|
||||||
false
|
false
|
||||||
@@ -1154,7 +1154,7 @@ pub(crate) fn start_live_migration(
|
|||||||
|
|
||||||
// Start to send migration from the source VM
|
// Start to send migration from the source VM
|
||||||
let args = [
|
let args = [
|
||||||
format!("--api-socket={}", &src_api_socket),
|
format!("--api-socket={src_api_socket}"),
|
||||||
"send-migration".to_string(),
|
"send-migration".to_string(),
|
||||||
format!(
|
format!(
|
||||||
"destination_url=unix:{migration_socket},local={}",
|
"destination_url=unix:{migration_socket},local={}",
|
||||||
|
|||||||
@@ -3709,7 +3709,7 @@ mod common_parallel {
|
|||||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
format!("path={},direct=on,image_type=raw", loop_dev).as_str(),
|
format!("path={loop_dev},direct=on,image_type=raw").as_str(),
|
||||||
])
|
])
|
||||||
.default_net()
|
.default_net()
|
||||||
.capture_output()
|
.capture_output()
|
||||||
@@ -4350,7 +4350,7 @@ mod common_parallel {
|
|||||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
format!("path={},image_type=raw", loop_dev).as_str(),
|
format!("path={loop_dev},image_type=raw").as_str(),
|
||||||
])
|
])
|
||||||
.default_net()
|
.default_net()
|
||||||
.capture_output()
|
.capture_output()
|
||||||
@@ -4526,7 +4526,7 @@ mod common_parallel {
|
|||||||
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
guest.disk_config.disk(DiskType::CloudInit).unwrap()
|
||||||
)
|
)
|
||||||
.as_str(),
|
.as_str(),
|
||||||
format!("path={},image_type=raw", dm_dev).as_str(),
|
format!("path={dm_dev},image_type=raw").as_str(),
|
||||||
])
|
])
|
||||||
.default_net()
|
.default_net()
|
||||||
.capture_output()
|
.capture_output()
|
||||||
|
|||||||
Reference in New Issue
Block a user