mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-25 11:14:46 +00:00
fix(test):; Allow '0 files' to not be redacted
This commit is contained in:
parent
a6cf1be655
commit
1f5f7021e5
@ -208,7 +208,7 @@ fn add_regex_redactions(subs: &mut snapbox::Redactions) {
|
||||
.unwrap();
|
||||
subs.insert(
|
||||
"[FILE_NUM]",
|
||||
regex!(r"\[(REMOVED|SUMMARY)\] (?<redacted>[0-9]+) files"),
|
||||
regex!(r"\[(REMOVED|SUMMARY)\] (?<redacted>[1-9][0-9]*) files"),
|
||||
)
|
||||
.unwrap();
|
||||
subs.insert(
|
||||
|
@ -849,7 +849,7 @@ fn clean_dry_run() {
|
||||
p.cargo("clean --dry-run")
|
||||
.with_stdout_data("")
|
||||
.with_stderr_data(str![[r#"
|
||||
[SUMMARY] [FILE_NUM] files
|
||||
[SUMMARY] 0 files
|
||||
[WARNING] no files deleted due to --dry-run
|
||||
|
||||
"#]])
|
||||
|
Loading…
x
Reference in New Issue
Block a user