summaryrefslogtreecommitdiffstats
path: root/debian/patches/d-disable-download-tests.patch
blob: 3f4b1dbe6f321ad0402dcf4dd45baf84590ce57d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Index: rust/src/bootstrap/config/tests.rs
===================================================================
--- rust.orig/src/bootstrap/config/tests.rs
+++ rust/src/bootstrap/config/tests.rs
@@ -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();