From ab2c6390c0db9edc5bc607e23458da7679f9de8a Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Sun, 7 Jun 2026 00:27:58 +0200 Subject: [PATCH] fix-test-tmpdir MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit commit 87b5189176cd3ba3929cc827560ca10aa2198b89 Author: Fabian Grünbichler Date: Sat Jun 6 23:25:23 2026 +0200 tests: skip overlay=cwd test in package build context just like the other local crate tests - until we find a way to make them robust. Signed-off-by: Fabian Grünbichler Gbp-Pq: Name fix-test-tmpdir.patch --- tests/local-crate.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/local-crate.rs b/tests/local-crate.rs index 054a5ec..9626b72 100644 --- a/tests/local-crate.rs +++ b/tests/local-crate.rs @@ -60,10 +60,13 @@ fn generate_package_with_semver_crate_src() { #[test] fn overlay_bail_with_recursive_copy() { - let tmp = tempfile::tempdir().unwrap(); + let tmp = tempfile::tempdir_in(Path::new(env!("CARGO_TARGET_TMPDIR"))).unwrap(); let manifest_dir = env!("CARGO_MANIFEST_DIR"); let foobar_path = Path::new(manifest_dir).join("tests").join("foobar"); + if !foobar_path.exists() { + return; + } let config_content = format!( r#"overlay = "." crate_src_path = "{}" -- 2.30.2