Skip to content

Commit 692caeb

Browse files
committed
fix!: don't panic, instead provide an error when fixture script fails.
This makes introspection easier, even though we still have to print to script output to stderr in order to make it legible.
1 parent a4801fe commit 692caeb

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tests/tools/src/lib.rs

+3-6
Original file line numberDiff line numberDiff line change
@@ -583,13 +583,10 @@ fn scripted_fixture_read_only_with_args_inner(
583583
};
584584
if !output.status.success() {
585585
write_failure_marker(&failure_marker);
586+
eprintln!("stdout: {}", output.stdout.as_bstr());
587+
eprintln!("stderr: {}", output.stderr.as_bstr());
588+
return Err(format!("fixture script of {cmd:?} failed").into());
586589
}
587-
assert!(
588-
output.status.success(),
589-
"fixture script of {cmd:?} failed: stdout: {}\nstderr: {}",
590-
output.stdout.as_bstr(),
591-
output.stderr.as_bstr()
592-
);
593590
create_archive_if_we_should(
594591
&script_result_directory,
595592
&archive_file_path,

0 commit comments

Comments
 (0)