Skip to content

Commit 875a25f

Browse files
committed
test: Auto-redact exit status
1 parent 02459b7 commit 875a25f

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
@@ -194,6 +194,10 @@ static MIN_LITERAL_REDACTIONS: &[(&str, &str)] = &[
194194
("[EXE]", std::env::consts::EXE_SUFFIX),
195195
("[BROKEN_PIPE]", "Broken pipe (os error 32)"),
196196
("[BROKEN_PIPE]", "The pipe is being closed. (os error 232)"),
197+
// Unix message for exit status
198+
("[EXIT_STATUS]", "exit status"),
199+
// Windows message for exit status
200+
("[EXIT_STATUS]", "exit code"),
197201
];
198202
static E2E_LITERAL_REDACTIONS: &[(&str, &str)] = &[
199203
("[RUNNING]", " Running"),

0 commit comments

Comments
 (0)