MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / run

Function run

atomic-cli/tests/it/change_ledger_integration_test.rs:11–26  ·  view source on GitHub ↗
(root: &Path, home: &Path, args: &[&str])

Source from the content-addressed store, hash-verified

9use tempfile::TempDir;
10
11fn 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]
29fn change_json_preserves_stored_provenance_hashes_and_session_chain() {

Calls 2

outputMethod · 0.45
unwrapMethod · 0.45

Tested by

no test coverage detected