Also check for CommandErrors in error checking

This commit is contained in:
datdenkikniet 2023-04-15 20:44:06 +02:00
parent fa8af4cbcf
commit 6517a4bec2
3 changed files with 29 additions and 14 deletions

View file

@ -324,9 +324,7 @@ fn command_parser(
.map_err(TestRunError::PathConversionError)?;
// cargo run <..>
info!("Running example: {example}");
let cargo_run_result = run_command(command, output_mode)?;
info!("{}", cargo_run_result.stdout);
// Create a file for the expected output if it does not exist or mismatches
if overwrite {