d-disable-download-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 30 May 2024 09:25:53 +0000 (11:25 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Thu, 30 May 2024 09:25:53 +0000 (11:25 +0200)
===================================================================

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

src/bootstrap/config/tests.rs

index aac76cdcbcf843668be456d623814ccf5d6ba028..a5ee8c9a623b4afd63ca625f9274a716192a285d 100644 (file)
@@ -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();