From: Debian Rust Maintainers Date: Wed, 12 Jun 2024 15:33:10 +0000 (+0200) Subject: d-disable-download-tests X-Git-Tag: archive/raspbian/1.75.0+dfsg1-5+rpi1^2~29 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=af69524a474704cbb09ebf67d1d9c6fba9a90d2d;p=rustc.git d-disable-download-tests =================================================================== Gbp-Pq: Name d-disable-download-tests.patch --- diff --git a/src/bootstrap/src/tests/config.rs b/src/bootstrap/src/tests/config.rs index 59bd52a94d..7aebddf643 100644 --- a/src/bootstrap/src/tests/config.rs +++ b/src/bootstrap/src/tests/config.rs @@ -18,6 +18,9 @@ fn parse(config: &str) -> Config { #[test] fn download_ci_llvm() { + // Debian: this will attempt to download LLVM + return; + if crate::core::build_steps::llvm::is_ci_llvm_modified(&parse("")) { eprintln!("Detected LLVM as non-available: running in CI and modified LLVM in this change"); return; @@ -46,6 +49,9 @@ 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();