d-disable-download-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 30 Dec 2023 13:52:00 +0000 (14:52 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sat, 30 Dec 2023 13:52:00 +0000 (14:52 +0100)
===================================================================

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

src/bootstrap/config/tests.rs

index 50569eb4f3737309245d3f7dd7146da2fd0c6ef4..6ffcfb211989ab5c742d1ee6c57c8bc83499011b 100644 (file)
@@ -11,6 +11,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;
@@ -39,7 +42,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();