Produce a per-execution [`ExecutorConfig`] for the given command and mode. `enable_introspection` controls whether language-level wrappers (Node.js, Go) are injected into `PATH`. This should be `false` for exec-harness targets.
(
&self,
command: String,
enable_introspection: bool,
)
| 179 | /// `enable_introspection` controls whether language-level wrappers (Node.js, Go) |
| 180 | /// are injected into `PATH`. This should be `false` for exec-harness targets. |
| 181 | pub fn executor_config_for_command( |
| 182 | &self, |
| 183 | command: String, |
| 184 | enable_introspection: bool, |
| 185 | ) -> ExecutorConfig { |
| 186 | ExecutorConfig { |
| 187 | working_directory: self.working_directory.clone(), |
| 188 | command, |
| 189 | instruments: self.instruments.clone(), |
| 190 | enable_profiler: self.enable_profiler, |
| 191 | perf_unwinding_mode: self.perf_unwinding_mode, |
| 192 | simulation_tool: self.simulation_tool, |
| 193 | skip_run: self.skip_run, |
| 194 | skip_setup: self.skip_setup, |
| 195 | allow_empty: self.allow_empty, |
| 196 | go_runner_version: self.go_runner_version.clone(), |
| 197 | extra_env: self.extra_env.clone(), |
| 198 | enable_introspection, |
| 199 | fair_sched: self.fair_sched, |
| 200 | cycle_estimation: self.cycle_estimation, |
| 201 | } |
| 202 | } |
| 203 | } |
| 204 | |
| 205 | #[cfg(test)] |