(&self, serial: &str, command: &str)
| 992 | } |
| 993 | |
| 994 | fn run_console_command_for_serial(&self, serial: &str, command: &str) -> Result<(), AppError> { |
| 995 | let port = console_port_from_serial(serial).ok_or_else(|| { |
| 996 | AppError::native(format!( |
| 997 | "Android emulator serial `{serial}` does not expose a console port." |
| 998 | )) |
| 999 | })?; |
| 1000 | run_android_console_command(port, command) |
| 1001 | } |
| 1002 | |
| 1003 | fn run_adb_shell(&self, serial: &str, script: &str) -> Result<String, AppError> { |
| 1004 | self.run_adb(["-s", serial, "shell", script]) |
no test coverage detected