(root: &Path, home: &Path, args: &[&str])
| 9 | use tempfile::TempDir; |
| 10 | |
| 11 | fn run(root: &Path, home: &Path, args: &[&str]) -> String { |
| 12 | let output = Command::new(env!("CARGO_BIN_EXE_atomic")) |
| 13 | .args(args) |
| 14 | .current_dir(root) |
| 15 | .env("HOME", home) |
| 16 | .env("ATOMIC_SERVICE", "local") |
| 17 | .env_remove("ATOMIC_RPC") |
| 18 | .output() |
| 19 | .expect("run atomic"); |
| 20 | assert!( |
| 21 | output.status.success(), |
| 22 | "{args:?}: {}", |
| 23 | String::from_utf8_lossy(&output.stderr) |
| 24 | ); |
| 25 | String::from_utf8(output.stdout).unwrap() |
| 26 | } |
| 27 | |
| 28 | #[test] |
| 29 | fn change_json_preserves_stored_provenance_hashes_and_session_chain() { |
no test coverage detected