(root: &Path, home: &Path, args: &[&str])
| 85 | } |
| 86 | |
| 87 | fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String { |
| 88 | let output = atomic(root, home, args); |
| 89 | assert!( |
| 90 | output.status.success(), |
| 91 | "atomic {args:?} failed:\nstdout:\n{}\nstderr:\n{}", |
| 92 | String::from_utf8_lossy(&output.stdout), |
| 93 | String::from_utf8_lossy(&output.stderr) |
| 94 | ); |
| 95 | String::from_utf8_lossy(&output.stdout).into_owned() |
| 96 | } |
| 97 | |
| 98 | /// `atomic_ok` with extra environment variables for this one invocation. |
| 99 | fn atomic_ok_env(root: &Path, home: &Path, envs: &[(&str, &str)], args: &[&str]) -> String { |
no test coverage detected