remove `vmctl test`

This commit is contained in:
Ryan Heywood 2025-05-09 14:01:31 -04:00
parent 723b663cb5
commit 6c5c130e77
Signed by: ryan
GPG Key ID: 8E401478A3FBEF72
2 changed files with 0 additions and 17 deletions

View File

@ -62,9 +62,6 @@ pub enum Commands {
/// Arguments to pass to the running command. /// Arguments to pass to the running command.
args: Vec<String>, args: Vec<String>,
}, },
/// Test synchronization by repeatedly running commands.
Test {},
} }
/// An attachable USB device identifier. /// An attachable USB device identifier.

View File

@ -90,20 +90,6 @@ fn main() -> eyre::Result<()> {
std::io::stdout().write_all(&response)?; std::io::stdout().write_all(&response)?;
std::process::exit(exit_code as i32); std::process::exit(exit_code as i32);
} }
cli::Commands::Test {} => {
let spawn_arguments = SpawnArguments::default();
let mut vm = VirtualMachine::load(spawn_arguments, None)?;
for i in 0..10 {
let sleep_command = format!("sleep 10; echo {i}");
let (response, exit_code) =
vm.run_command("sh", [String::from("-c"), sleep_command])?;
eprint!(
"exit code {}, output {}",
exit_code,
String::from_utf8_lossy(&response),
);
}
}
} }
Ok(()) Ok(())