From: =?utf-8?q?Fabian_Gr=C3=BCnbichler?= <f.gruenbichler@proxmox.com>
Date: Thu, 25 Sep 2025 09:32:47 +0200
Subject: disable bootstrap tests that don't work from tarball sources
MIME-Version: 1.0
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: 8bit

Forwarded: not-needed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
---
 src/bootstrap/src/core/builder/tests.rs | 12 ++++++++----
 1 file changed, 8 insertions(+), 4 deletions(-)

diff --git a/src/bootstrap/src/core/builder/tests.rs b/src/bootstrap/src/core/builder/tests.rs
index 500c835..8c235d8 100644
--- a/src/bootstrap/src/core/builder/tests.rs
+++ b/src/bootstrap/src/core/builder/tests.rs
@@ -244,7 +244,8 @@ fn alias_and_path_for_library() {
     );
 }
 
-#[test]
+//Debian: doesn't work in a tarball source
+#[allow(dead_code)]
 fn ci_rustc_if_unchanged_invalidate_on_compiler_changes() {
     git_test(|ctx| {
         prepare_rustc_checkout(ctx);
@@ -257,7 +258,8 @@ fn ci_rustc_if_unchanged_invalidate_on_compiler_changes() {
     });
 }
 
-#[test]
+//Debian: doesn't work in a tarball source
+#[allow(dead_code)]
 fn ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci() {
     git_test(|ctx| {
         prepare_rustc_checkout(ctx);
@@ -270,7 +272,8 @@ fn ci_rustc_if_unchanged_do_not_invalidate_on_library_changes_outside_ci() {
     });
 }
 
-#[test]
+//Debian: doesn't work in a tarball source
+#[allow(dead_code)]
 fn ci_rustc_if_unchanged_do_not_invalidate_on_tool_changes() {
     git_test(|ctx| {
         prepare_rustc_checkout(ctx);
@@ -684,7 +687,8 @@ mod dist {
 
     /// This also serves as an important regression test for <https://github.com/rust-lang/rust/issues/138123>
     /// and <https://github.com/rust-lang/rust/issues/138004>.
-    #[test]
+    // Debian: this tries to download LLVM with ninja and fails
+    #[allow(dead_code)]
     fn dist_all_cross() {
         let cmd_args =
             &["dist", "--stage", "2", "--dry-run", "--config=/does/not/exist"].map(str::to_owned);
