Skip to content

Commit

Permalink
Auto merge of #14126 - eth3lbert:snapbox-rrs, r=epage
Browse files Browse the repository at this point in the history
test: migrate rustflags, rustup and script to snapbox

### What does this PR try to resolve?

Part of #14039.

Migrate following to snapbox:

- `tests/testsuite/rustflags.rs`
- `tests/testsuite/rustup.rs`
- `tests/testsuite/script.rs`
  • Loading branch information
bors committed Jun 23, 2024
2 parents 28d213b + 297b24a commit fcd3c07
Show file tree
Hide file tree
Showing 4 changed files with 897 additions and 721 deletions.
5 changes: 5 additions & 0 deletions crates/cargo-test-support/src/compare.rs
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,11 @@ fn add_common_redactions(subs: &mut snapbox::Redactions) {
regex!(r"home/\.cargo/registry/src/-(?<redacted>[a-z0-9]+)"),
)
.unwrap();
subs.insert(
"[HASH]",
regex!(r"\.cargo/target/(?<redacted>[0-9a-f]{2}/[0-9a-f]{14})"),
)
.unwrap();
subs.insert("[HASH]", regex!(r"/[a-z0-9\-_]+-(?<redacted>[0-9a-f]{16})"))
.unwrap();
subs.insert("[HOST_TARGET]", rustc_host()).unwrap();
Expand Down
Loading

0 comments on commit fcd3c07

Please sign in to comment.