(root: &Path, home: &Path, args: &[&str])
| 35 | } |
| 36 | |
| 37 | fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String { |
| 38 | let output = atomic(root, home, args); |
| 39 | assert!( |
| 40 | output.status.success(), |
| 41 | "atomic {args:?} failed: {}{}", |
| 42 | String::from_utf8_lossy(&output.stdout), |
| 43 | String::from_utf8_lossy(&output.stderr) |
| 44 | ); |
| 45 | String::from_utf8_lossy(&output.stdout).to_string() |
| 46 | } |
| 47 | |
| 48 | fn git(root: &Path, args: &[&str]) -> String { |
| 49 | let output = Command::new("git") |
no test coverage detected