(root: &std::path::Path, home: &std::path::Path, args: &[&str])
| 42 | } |
| 43 | |
| 44 | fn atomic_ok(root: &std::path::Path, home: &std::path::Path, args: &[&str]) -> String { |
| 45 | let output = atomic(root, home, args); |
| 46 | assert!( |
| 47 | output.status.success(), |
| 48 | "atomic {args:?} failed:\n{}{}", |
| 49 | String::from_utf8_lossy(&output.stdout), |
| 50 | String::from_utf8_lossy(&output.stderr) |
| 51 | ); |
| 52 | format!( |
| 53 | "{}{}", |
| 54 | String::from_utf8_lossy(&output.stdout), |
| 55 | String::from_utf8_lossy(&output.stderr) |
| 56 | ) |
| 57 | } |
| 58 | |
| 59 | fn atomic_with_stdin( |
| 60 | root: &std::path::Path, |