Skip up-to-date checking for tests that are already ignored

This commit is contained in:
Zalathar 2025-10-20 14:12:23 +11:00
parent c0c37cafdc
commit 84861fa765

View file

@ -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