mirror of
https://github.com/astral-sh/uv.git
synced 2025-08-04 19:08:04 +00:00
Filter uv version display in standard filters (#4403)
No reason for these to be special-cased and I need them for #4404 tests
This commit is contained in:
parent
2b74d13f40
commit
0db5ce0e98
2 changed files with 7 additions and 24 deletions
|
@ -68,16 +68,7 @@ fn prune_no_op() -> Result<()> {
|
|||
.assert()
|
||||
.success();
|
||||
|
||||
let filters: Vec<_> = context
|
||||
.filters()
|
||||
.into_iter()
|
||||
.chain([(
|
||||
r"uv \d+\.\d+\.\d+( \(.*\))?",
|
||||
r"uv [VERSION] ([COMMIT] DATE)",
|
||||
)])
|
||||
.collect();
|
||||
|
||||
uv_snapshot!(filters, prune_command(&context).arg("--verbose"), @r###"
|
||||
uv_snapshot!(context.filters(), prune_command(&context).arg("--verbose"), @r###"
|
||||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
|
@ -109,16 +100,7 @@ fn prune_stale_directory() -> Result<()> {
|
|||
let simple = context.cache_dir.child("simple-v4");
|
||||
simple.create_dir_all()?;
|
||||
|
||||
let filters: Vec<_> = context
|
||||
.filters()
|
||||
.into_iter()
|
||||
.chain([(
|
||||
r"uv \d+\.\d+\.\d+( \(.*\))?",
|
||||
r"uv [VERSION] ([COMMIT] DATE)",
|
||||
)])
|
||||
.collect();
|
||||
|
||||
uv_snapshot!(filters, prune_command(&context).arg("--verbose"), @r###"
|
||||
uv_snapshot!(context.filters(), prune_command(&context).arg("--verbose"), @r###"
|
||||
success: true
|
||||
exit_code: 0
|
||||
----- stdout -----
|
||||
|
@ -155,10 +137,6 @@ fn prune_stale_symlink() -> Result<()> {
|
|||
.filters()
|
||||
.into_iter()
|
||||
.chain([
|
||||
(
|
||||
r"uv \d+\.\d+\.\d+( \(.*\))?",
|
||||
r"uv [VERSION] ([COMMIT] DATE)",
|
||||
),
|
||||
// The cache entry does not have a stable key, so we filter it out
|
||||
(
|
||||
r"\[CACHE_DIR\](\\|\/)(.+)(\\|\/).*",
|
||||
|
|
|
@ -42,6 +42,11 @@ pub const INSTA_FILTERS: &[(&str, &str)] = &[
|
|||
// Rewrite Windows output to Unix output
|
||||
(r"\\([\w\d])", "/$1"),
|
||||
(r"uv.exe", "uv"),
|
||||
// uv version display
|
||||
(
|
||||
r"uv \d+\.\d+\.\d+( \(.*\))?",
|
||||
r"uv [VERSION] ([COMMIT] DATE)",
|
||||
),
|
||||
// The exact message is host language dependent
|
||||
(
|
||||
r"Caused by: .* \(os error 2\)",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue