Run atomic, assert success, return stdout+stderr.
(root: &Path, home: &Path, args: &[&str])
| 75 | |
| 76 | /// Run atomic, assert success, return stdout+stderr. |
| 77 | fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String { |
| 78 | let output = atomic(root, home, args); |
| 79 | assert!( |
| 80 | output.status.success(), |
| 81 | "atomic {args:?} failed:\n{}", |
| 82 | atomic_text(&output) |
| 83 | ); |
| 84 | atomic_text(&output) |
| 85 | } |
| 86 | |
| 87 | /// Run atomic with a wall-clock measurement; returns (seconds, output). |
| 88 | fn timed_atomic(root: &Path, home: &Path, args: &[&str]) -> (f64, Output) { |
no test coverage detected