d-disable-download-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Fri, 17 May 2024 06:38:11 +0000 (08:38 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 17 May 2024 06:38:11 +0000 (08:38 +0200)
===================================================================

Gbp-Pq: Name d-disable-download-tests.patch

src/bootstrap/config/tests.rs

index 4de84b543ed96c0cdf838a8b7b5682d27eac375d..6d99d66198a17020d54f402bc8d6f74e2f614a8c 100644 (file)
@@ -10,6 +10,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;
@@ -38,7 +41,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();