mirror of https://github.com/astral-sh/uv
Debug `sync_dry_run` flake by panicking with verbose output on failure (#13817)
Investigating #13744 I tried reproducing here by running the test in a loop, but could not. I presume it's an interaction with other tests. This drops the snapshot, but I think it's worth it to try to examine the flake?
This commit is contained in:
parent
87ab57e902
commit
806cc5cad9
|
|
@ -7879,18 +7879,13 @@ fn sync_dry_run() -> Result<()> {
|
||||||
+ iniconfig==2.0.0
|
+ iniconfig==2.0.0
|
||||||
"###);
|
"###);
|
||||||
|
|
||||||
uv_snapshot!(context.filters(), context.sync().arg("--dry-run"), @r###"
|
let output = context.sync().arg("--dry-run").arg("-vv").output()?;
|
||||||
success: true
|
let stderr = String::from_utf8_lossy(&output.stderr);
|
||||||
exit_code: 0
|
assert!(
|
||||||
----- stdout -----
|
!stderr.contains("Would replace existing virtual environment"),
|
||||||
|
"{}",
|
||||||
----- stderr -----
|
stderr
|
||||||
Discovered existing environment at: .venv
|
);
|
||||||
Resolved 2 packages in [TIME]
|
|
||||||
Found up-to-date lockfile at: uv.lock
|
|
||||||
Audited 1 package in [TIME]
|
|
||||||
Would make no changes
|
|
||||||
"###);
|
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue