Skip to content

Commit e28c99d

Browse files
committed
test: Auto-redact exit status
1 parent 28a2baa commit e28c99d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/cargo-test-support/src/compare.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,10 @@ static MIN_LITERAL_REDACTIONS: &[(&str, &str)] = &[
185185
("[EXE]", std::env::consts::EXE_SUFFIX),
186186
("[BROKEN_PIPE]", "Broken pipe (os error 32)"),
187187
("[BROKEN_PIPE]", "The pipe is being closed. (os error 232)"),
188+
// Unix message for exit status
189+
("[EXIT_STATUS]", "exit status"),
190+
// Windows message for exit status
191+
("[EXIT_STATUS]", "exit code"),
188192
];
189193
static E2E_LITERAL_REDACTIONS: &[(&str, &str)] = &[
190194
("[RUNNING]", " Running"),

0 commit comments

Comments
 (0)