Fix install_registry_source_dist_cached on Gentoo (#3569)

## Summary

Increment the removed file counts in filters
in install_registry_source_dist_cached test, to make it work again on
Gentoo. The tested counts were updated
in 9a92a3ad37, but the filters were not.
That said, the respective count increased in Gentoo as well, so adjust
both input and output strings. I'm updating Windows as a guesswork,
though I suspect that filter may not be necessary anymore, given that CI
was passing.

## Test Plan

`cargo test` on Gentoo :-).
This commit is contained in:
Michał Górny 2024-05-14 19:51:51 +02:00 committed by GitHub
parent b20d5ad96f
commit e64c337cc5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1449,13 +1449,13 @@ fn install_registry_source_dist_cached() -> Result<()> {
let filters: Vec<(&str, &str)> = if cfg!(windows) { let filters: Vec<(&str, &str)> = if cfg!(windows) {
// On Windows, the number of files removed is different. // On Windows, the number of files removed is different.
[("Removed 615 files", "Removed 616 files")] [("Removed 616 files", "Removed 617 files")]
.into_iter() .into_iter()
.chain(context.filters()) .chain(context.filters())
.collect() .collect()
} else { } else {
// For some Linux distributions, like Gentoo, the number of files removed is different. // For some Linux distributions, like Gentoo, the number of files removed is different.
[("Removed 614 files", "Removed 616 files")] [("Removed 615 files", "Removed 617 files")]
.into_iter() .into_iter()
.chain(context.filters()) .chain(context.filters())
.collect() .collect()