summary refs log tree commit diff
path: root/host
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-11-05 12:10:36 +0000
committerAlyssa Ross <hi@alyssa.is>2023-11-05 14:41:49 +0100
commite3b603c53211a3cf9d587226276e70334a04c044 (patch)
tree4c20fb5a05a0e46b1c7334eb04a97c5b8864bf7c /host
parent1a7de25dc1413120c4cd83c8571c7ef25f9a44ee (diff)
downloadspectrum-e3b603c53211a3cf9d587226276e70334a04c044.tar
spectrum-e3b603c53211a3cf9d587226276e70334a04c044.tar.gz
spectrum-e3b603c53211a3cf9d587226276e70334a04c044.tar.bz2
spectrum-e3b603c53211a3cf9d587226276e70334a04c044.tar.lz
spectrum-e3b603c53211a3cf9d587226276e70334a04c044.tar.xz
spectrum-e3b603c53211a3cf9d587226276e70334a04c044.tar.zst
spectrum-e3b603c53211a3cf9d587226276e70334a04c044.zip
host/start-vm: tests: remove pointless create_dir
This has never been necessary.

Fixes: bb13845 ("host/start-vm: test cloud-hypervisor command")
Signed-off-by: Alyssa Ross <hi@alyssa.is>
Diffstat (limited to 'host')
-rw-r--r--host/start-vm/tests/vm_command-basic.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/host/start-vm/tests/vm_command-basic.rs b/host/start-vm/tests/vm_command-basic.rs
index 71f20fd..e2b94ec 100644
--- a/host/start-vm/tests/vm_command-basic.rs
+++ b/host/start-vm/tests/vm_command-basic.rs
@@ -2,7 +2,7 @@
 // SPDX-FileCopyrightText: 2022 Alyssa Ross <hi@alyssa.is>
 
 use std::ffi::{OsStr, OsString};
-use std::fs::{create_dir, create_dir_all, File};
+use std::fs::{create_dir_all, File};
 
 use start_vm::vm_command;
 use test_helper::TempDir;
@@ -11,7 +11,6 @@ fn main() -> std::io::Result<()> {
     let tmp_dir = TempDir::new()?;
 
     let service_dir = tmp_dir.path().join("testvm");
-    create_dir(&service_dir)?;
 
     let kernel_path = service_dir.join("data/config/vmlinux");
     let image_path = service_dir.join("data/config/blk/root.img");