(&self, program: &str, args: &[&str])
| 13 | |
| 14 | impl Fixture { |
| 15 | fn command(&self, program: &str, args: &[&str]) -> Output { |
| 16 | Command::new(program) |
| 17 | .args(args) |
| 18 | .current_dir(self.root.path()) |
| 19 | .env("HOME", self.home.path()) |
| 20 | .env("ATOMIC_HOME", self.home.path().join(".atomic")) |
| 21 | .env("ATOMIC_SERVICE", "local") |
| 22 | .env_remove("ATOMIC_RPC") |
| 23 | .env_remove("ATOMIC_DAEMON_SOCKET") |
| 24 | .env("ATOMIC_NONINTERACTIVE", "1") |
| 25 | .env("GIT_CONFIG_GLOBAL", "/dev/null") |
| 26 | .env("GIT_CONFIG_NOSYSTEM", "1") |
| 27 | .env("GIT_AUTHOR_NAME", "Shim workspace test") |
| 28 | .env("GIT_AUTHOR_EMAIL", "bridge@example.invalid") |
| 29 | .env("GIT_COMMITTER_NAME", "Shim workspace test") |
| 30 | .env("GIT_COMMITTER_EMAIL", "bridge@example.invalid") |
| 31 | .output() |
| 32 | .unwrap() |
| 33 | } |
| 34 | |
| 35 | fn ok(&self, program: &str, args: &[&str]) -> String { |
| 36 | let output = self.command(program, args); |
no test coverage detected