(&self, args: &[&str])
| 21 | } |
| 22 | |
| 23 | fn run(&self, args: &[&str]) -> String { |
| 24 | let output = self.output(args); |
| 25 | assert!( |
| 26 | output.status.success(), |
| 27 | "atomic {args:?}:\n{}\n{}", |
| 28 | String::from_utf8_lossy(&output.stdout), |
| 29 | String::from_utf8_lossy(&output.stderr) |
| 30 | ); |
| 31 | String::from_utf8(output.stdout).unwrap() |
| 32 | } |
| 33 | |
| 34 | fn output(&self, args: &[&str]) -> std::process::Output { |
| 35 | Command::new(env!("CARGO_BIN_EXE_atomic")) |