From bd67d694d42e174c1fcf7c7a6d10ab328aa6b981 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Mon, 15 Jan 2024 08:16:35 +0100 Subject: [PATCH] d-disable-download-tests =================================================================== Gbp-Pq: Name d-disable-download-tests.patch --- src/bootstrap/config/tests.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/bootstrap/config/tests.rs b/src/bootstrap/config/tests.rs index 50569eb4f3..6ffcfb2119 100644 --- a/src/bootstrap/config/tests.rs +++ b/src/bootstrap/config/tests.rs @@ -11,6 +11,9 @@ fn parse(config: &str) -> Config { #[test] fn download_ci_llvm() { + // Debian: this will attempt to download LLVM + return; + if crate::llvm::is_ci_llvm_modified(&parse("")) { eprintln!("Detected LLVM as non-available: running in CI and modified LLVM in this change"); return; @@ -39,7 +42,11 @@ fn download_ci_llvm() { // - https://github.com/rust-lang/rust/pull/109162#issuecomment-1496782487 #[test] fn detect_src_and_out() { + // Debian: this will attempt to download a toolchain + return; + fn test(cfg: Config, build_dir: Option<&str>) { + // This will bring absolute form of `src/bootstrap` path let current_dir = std::env::current_dir().unwrap(); -- 2.30.2