From: Debian Rust Maintainers Date: Tue, 28 May 2024 15:06:58 +0000 (+0200) Subject: d-disable-download-tests X-Git-Tag: archive/raspbian/1.73.0+dfsg1-1+rpi1^2~31 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=80d9c79cf2f8fb39ae69acb889e88b9e41cb09c4;p=rustc.git d-disable-download-tests =================================================================== Gbp-Pq: Name d-disable-download-tests.patch --- diff --git a/src/bootstrap/config/tests.rs b/src/bootstrap/config/tests.rs index c340bb2982..88bde14bb9 100644 --- a/src/bootstrap/config/tests.rs +++ b/src/bootstrap/config/tests.rs @@ -13,6 +13,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; @@ -41,7 +44,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();