remove `vmctl test`
This commit is contained in:
parent
723b663cb5
commit
6c5c130e77
|
@ -62,9 +62,6 @@ pub enum Commands {
|
|||
/// Arguments to pass to the running command.
|
||||
args: Vec<String>,
|
||||
},
|
||||
|
||||
/// Test synchronization by repeatedly running commands.
|
||||
Test {},
|
||||
}
|
||||
|
||||
/// An attachable USB device identifier.
|
||||
|
|
14
src/main.rs
14
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(())
|
||||
|
|
Loading…
Reference in New Issue