(root: &Path, home: &Path, args: &[&str])
| 116 | } |
| 117 | |
| 118 | fn atomic_err(root: &Path, home: &Path, args: &[&str]) -> String { |
| 119 | let output = atomic(root, home, args); |
| 120 | assert!( |
| 121 | !output.status.success(), |
| 122 | "atomic {args:?} unexpectedly succeeded:\nstdout:\n{}", |
| 123 | String::from_utf8_lossy(&output.stdout) |
| 124 | ); |
| 125 | format!( |
| 126 | "{}{}", |
| 127 | String::from_utf8_lossy(&output.stdout), |
| 128 | String::from_utf8_lossy(&output.stderr) |
| 129 | ) |
| 130 | } |
| 131 | |
| 132 | fn git(root: &Path, args: &[&str]) -> String { |
| 133 | let output = Command::new("git") |
no test coverage detected