(tool: &str)
| 739 | } |
| 740 | |
| 741 | fn e2fs_tool_candidates(tool: &str) -> Vec<PathBuf> { |
| 742 | let mut candidates = vec![PathBuf::from(tool)]; |
| 743 | for root in ["/opt/homebrew/opt/e2fsprogs", "/usr/local/opt/e2fsprogs"] { |
| 744 | candidates.push(Path::new(root).join("sbin").join(tool)); |
| 745 | candidates.push(Path::new(root).join("bin").join(tool)); |
| 746 | } |
| 747 | candidates |
| 748 | } |
| 749 | |
| 750 | fn temporary_injection_path(image_path: &Path) -> PathBuf { |
| 751 | let n = INJECTION_COUNTER.fetch_add(1, Ordering::Relaxed); |
no test coverage detected