(output: Output)
| 13 | } |
| 14 | |
| 15 | fn stdout(output: Output) -> String { |
| 16 | assert!( |
| 17 | output.status.success(), |
| 18 | "command failed: {}\n{}", |
| 19 | String::from_utf8_lossy(&output.stdout), |
| 20 | String::from_utf8_lossy(&output.stderr) |
| 21 | ); |
| 22 | String::from_utf8(output.stdout).unwrap().trim().to_string() |
| 23 | } |
| 24 | |
| 25 | fn git(dir: &Path, args: &[&str]) -> String { |
| 26 | stdout( |
no test coverage detected