()
| 901 | } |
| 902 | |
| 903 | pub fn configured_runtime_dir() -> Result<PathBuf, String> { |
| 904 | if let Some(path) = std::env::var_os(VM_RUNTIME_DIR_ENV) { |
| 905 | return Ok(PathBuf::from(path)); |
| 906 | } |
| 907 | embedded_runtime::ensure_runtime_extracted() |
| 908 | } |
| 909 | |
| 910 | fn qemu_runtime_dir() -> Result<PathBuf, String> { |
| 911 | configured_runtime_dir().map_err(|_| { |
no test coverage detected