(root: &Path, home: &Path, args: &[&str])
| 74 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 75 | |
| 76 | fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output { |
| 77 | Command::new(ATOMIC_BIN) |
| 78 | .args(args) |
| 79 | .current_dir(root) |
| 80 | .env("HOME", home) |
| 81 | .env("ATOMIC_HOME", home.join(".atomic")) |
| 82 | .env("ATOMIC_NONINTERACTIVE", "1") |
| 83 | .output() |
| 84 | .expect("run atomic") |
| 85 | } |
| 86 | |
| 87 | fn atomic_ok(root: &Path, home: &Path, args: &[&str]) -> String { |
| 88 | let output = atomic(root, home, args); |
no test coverage detected