Skip to content
Myr

Formatting

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by David Peter · committed by David Peter · parent 8c5ae87 · Browse files · 1 file+4 added−3 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+4 added−3 removed

  • other:+4 added−3 removed

1 file+4 added−3 removed

modified:src/benchmark/scheduler.rs+4 added-3 removed
234 unmodified lines
235 );236 }237 }238239 /// Run setup, cleanup, or preparation commands240 fn run_intermediate_command(241 &self,242 command: &Command<'_>,243 error_output: &'static str,
20 unmodified lines
264 .as_ref()265 .map(|setup_command| Command::new_parametrized(None, setup_command, parameters));266267 let error_output = "The setup command terminated with a non-zero exit code. \267 Append ' || true' to the command if you are sure that this can be ignored.";268 Append ' || true' to the command if you are sure that this can be ignored.";269270 Ok(command271 .map(|cmd| self.run_intermediate_command(&cmd, error_output))272 .transpose()?
11 unmodified lines
284 .as_ref()285 .map(|cleanup_command| Command::new_parametrized(None, cleanup_command, parameters));286287 let error_output = "The cleanup command terminated with a non-zero exit code. \287 Append ' || true' to the command if you are sure that this can be ignored.";288 Append ' || true' to the command if you are sure that this can be ignored.";289290 Ok(command291 .map(|cmd| self.run_intermediate_command(&cmd, error_output))292 .transpose()?
2 unmodified lines
295296 /// Run the command specified by `--prepare`.297 fn run_preparation_command(&self, command: &Command<'_>) -> Result<TimingResult> {298 let error_output = "The preparation command terminated with a non-zero exit code. \298 Append ' || true' to the command if you are sure that this can be ignored.";299 Append ' || true' to the command if you are sure that this can be ignored.";300301 self.run_intermediate_command(command, error_output)302 }303
282 unmodified lines