diff --git a/src/cli.rs b/src/cli.rs index 3acb338..c4a0e32 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -62,9 +62,6 @@ pub enum Commands { /// Arguments to pass to the running command. args: Vec, }, - - /// Test synchronization by repeatedly running commands. - Test {}, } /// An attachable USB device identifier. diff --git a/src/main.rs b/src/main.rs index 0d61b0b..07a162b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -90,20 +90,6 @@ fn main() -> eyre::Result<()> { std::io::stdout().write_all(&response)?; 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(())