Skip to content

Commit e108baa

Browse files
authored
test: debug log stdout in testdata test (#12482)
1 parent e1264bb commit e108baa

File tree

1 file changed

+4
-0
lines changed
  • crates/forge/tests/cli/test_cmd

1 file changed

+4
-0
lines changed

crates/forge/tests/cli/test_cmd/mod.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ forgetest!(testdata, |_prj, cmd| {
4747
if orig_assert.get_output().status.success() {
4848
return;
4949
}
50+
let stdout = orig_assert.get_output().stdout_lossy();
51+
if let Some(i) = stdout.rfind("Suite result:") {
52+
test_debug!("--- short stdout ---\n\n{}\n\n---", &stdout[i..]);
53+
}
5054

5155
// Retry failed tests.
5256
cmd.args(["--rerun"]);

0 commit comments

Comments
 (0)