From: Debian Rust Maintainers Date: Thu, 13 Jun 2024 09:16:39 +0000 (+0200) Subject: d-disable-download-tests X-Git-Tag: archive/raspbian/1.79.0+dfsg1-2+rpi1^2~34 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=28c4fab361afac84d3541fe70a80494f952c1e8a;p=rustc.git d-disable-download-tests Forwarded: no Gbp-Pq: Topic upstream Gbp-Pq: Name d-disable-download-tests.patch --- diff --git a/src/bootstrap/src/core/config/tests.rs b/src/bootstrap/src/core/config/tests.rs index 59e16b6542..9a871ecc09 100644 --- a/src/bootstrap/src/core/config/tests.rs +++ b/src/bootstrap/src/core/config/tests.rs @@ -26,6 +26,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; @@ -57,6 +60,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();