Get the Wasmtime CLI as a [Command].
()
| 20 | |
| 21 | /// Get the Wasmtime CLI as a [Command]. |
| 22 | pub fn get_wasmtime_command() -> Result<Command> { |
| 23 | let mut cmd = wasmtime_test_util::command(get_wasmtime_path()); |
| 24 | |
| 25 | // Ignore this if it's specified in the environment to allow tests to run in |
| 26 | // "default mode" by default. |
| 27 | cmd.env_remove("WASMTIME_NEW_CLI"); |
| 28 | |
| 29 | Ok(cmd) |
| 30 | } |
| 31 | |
| 32 | fn get_wasmtime_path() -> &'static str { |
| 33 | env!("CARGO_BIN_EXE_wasmtime") |
no test coverage detected