(rootfs: &Path, relative: &str)
| 872 | } |
| 873 | |
| 874 | fn require_rootfs_path(rootfs: &Path, relative: &str) -> Result<(), String> { |
| 875 | let candidate = rootfs.join(relative.trim_start_matches('/')); |
| 876 | if candidate.exists() { |
| 877 | Ok(()) |
| 878 | } else { |
| 879 | Err(format!( |
| 880 | "prepared rootfs is missing {}", |
| 881 | candidate.display() |
| 882 | )) |
| 883 | } |
| 884 | } |
| 885 | |
| 886 | fn require_any_rootfs_path(rootfs: &Path, candidates: &[&str]) -> Result<(), String> { |
| 887 | if candidates |
no test coverage detected