(root: &Path, home: &Path, program: &str, args: &[&str])
| 5 | use std::process::{Command, Output}; |
| 6 | |
| 7 | fn run(root: &Path, home: &Path, program: &str, args: &[&str]) -> Output { |
| 8 | Command::new(program) |
| 9 | .args(args) |
| 10 | .current_dir(root) |
| 11 | .env("HOME", home) |
| 12 | .env("ATOMIC_HOME", home.join(".atomic")) |
| 13 | .env("ATOMIC_SERVICE", "local") |
| 14 | .env("GIT_CONFIG_GLOBAL", "/dev/null") |
| 15 | .env("GIT_CONFIG_NOSYSTEM", "1") |
| 16 | .env("GIT_TERMINAL_PROMPT", "0") |
| 17 | .env_remove("GIT_INDEX_FILE") |
| 18 | .output() |
| 19 | .unwrap() |
| 20 | } |
| 21 | |
| 22 | #[test] |
| 23 | fn incremental_span_import_refuses_alternate_git_index_before_writing() { |
no test coverage detected