Run from an explicit working directory. The handler resolves every path it deletes against the repository root, so where the command was invoked from must not change what it removes — in reactor mode the daemon's own working directory is never the repository at all.
(cwd: &Path, root: &Path, args: &[&str])
| 27 | /// must not change what it removes — in reactor mode the daemon's own working |
| 28 | /// directory is never the repository at all. |
| 29 | fn run_in(cwd: &Path, root: &Path, args: &[&str]) -> Output { |
| 30 | Command::new(env!("CARGO_BIN_EXE_atomic")) |
| 31 | .current_dir(cwd) |
| 32 | .args(args) |
| 33 | .env("ATOMIC_HOME", root.join(".atomic/test-home")) |
| 34 | .env_remove("ATOMIC_RPC") |
| 35 | .env("ATOMIC_SERVICE", "local") |
| 36 | .env("ATOMIC_NONINTERACTIVE", "1") |
| 37 | .env("NO_COLOR", "1") |
| 38 | .output() |
| 39 | .unwrap() |
| 40 | } |
| 41 | |
| 42 | /// Combined stdout+stderr, for assertions that target either stream. |
| 43 | fn output_text(output: &Output) -> String { |
no test coverage detected