(root: &Path, home: &Path, args: &[&str])
| 16 | const ATOMIC_BIN: &str = env!("CARGO_BIN_EXE_atomic"); |
| 17 | |
| 18 | fn atomic(root: &Path, home: &Path, args: &[&str]) -> Output { |
| 19 | Command::new(ATOMIC_BIN) |
| 20 | .args(args) |
| 21 | .current_dir(root) |
| 22 | .env("HOME", home) |
| 23 | .env("ATOMIC_HOME", home.join(".atomic")) |
| 24 | .output() |
| 25 | .expect("run atomic") |
| 26 | } |
| 27 | |
| 28 | fn init_fixture(root: &Path, home: &Path) { |
| 29 | let git = GitRepository::init(root).expect("init Git"); |