tests: Use constant instead of static value for windows image name

Signed-off-by: Muminul Islam <muislam@microsoft.com>
This commit is contained in:
Muminul Islam 2021-02-18 10:42:06 -08:00 committed by Rob Bradford
parent 29f924405a
commit 0ef69fa592

View File

@ -6115,7 +6115,7 @@ mod tests {
ovmf_path.push("OVMF.fd");
let mut osdisk_path = workload_path;
osdisk_path.push("windows-server-2019.raw");
osdisk_path.push(WINDOWS_IMAGE_NAME.to_string());
let mut child = GuestCommand::new(&guest)
.args(&["--cpus", "boot=2,kvm_hyperv=on"])
@ -6169,7 +6169,7 @@ mod tests {
ovmf_path.push("OVMF.fd");
let mut osdisk_path = workload_path;
osdisk_path.push("windows-server-2019.raw");
osdisk_path.push(WINDOWS_IMAGE_NAME.to_string());
let api_socket = temp_api_path(&tmp_dir);