From 84861fa7653cfd11c850bf06cc01daa9d5f45124 Mon Sep 17 00:00:00 2001 From: Zalathar Date: Mon, 20 Oct 2025 14:12:23 +1100 Subject: [PATCH] Skip up-to-date checking for tests that are already ignored --- src/tools/compiletest/src/lib.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/tools/compiletest/src/lib.rs b/src/tools/compiletest/src/lib.rs index 4cfb1e20f9ae..2c68a771169e 100644 --- a/src/tools/compiletest/src/lib.rs +++ b/src/tools/compiletest/src/lib.rs @@ -907,7 +907,10 @@ fn make_test(cx: &TestCollectorCx, collector: &mut TestCollector, testpaths: &Te // If a test's inputs haven't changed since the last time it ran, // mark it as ignored so that the executor will skip it. - if !cx.config.force_rerun && is_up_to_date(cx, testpaths, &early_props, revision) { + if !desc.ignore + && !cx.config.force_rerun + && is_up_to_date(cx, testpaths, &early_props, revision) + { desc.ignore = true; // Keep this in sync with the "up-to-date" message detected by bootstrap. // FIXME(Zalathar): Now that we are no longer tied to libtest, we could