disable bootstrap tests that don't work from tarball sources
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Thu, 25 Sep 2025 07:32:47 +0000 (09:32 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Fri, 26 Dec 2025 19:54:51 +0000 (20:54 +0100)
Forwarded: not-needed

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
Gbp-Pq: Topic build
Gbp-Pq: Name disable-bootstrap-tests-that-don-t-work-from-tarball-sour.patch

src/bootstrap/src/core/builder/tests.rs

index 2d568f839cbc8c33399ff1f876831879e48e1e53..8a2824ba1824ca97c1e9da883fc61029801ef664 100644 (file)
@@ -168,7 +168,8 @@ fn check_missing_paths_for_x_test_tests() {
     }
 }
 
-#[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);
@@ -181,7 +182,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);
@@ -194,7 +196,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);
@@ -1533,7 +1536,7 @@ mod snapshot {
         ");
     }
 
-    #[test]
+    #[allow(dead_code)]
     fn dist_all_cross_extended() {
         let ctx = TestCtx::new();
         insta::assert_snapshot!(
@@ -1614,7 +1617,7 @@ mod snapshot {
     ///
     /// This is a regression test for <https://github.com/rust-lang/rust/issues/138123>
     /// and <https://github.com/rust-lang/rust/issues/138004>.
-    #[test]
+    #[allow(dead_code)]
     fn dist_all_cross_extended_no_docs() {
         let ctx = TestCtx::new();
         let steps = ctx