Skip to content

Commit 84861fa

Browse files
committed
Skip up-to-date checking for tests that are already ignored
1 parent c0c37ca commit 84861fa

File tree

1 file changed

+4
-1
lines changed
  • src/tools/compiletest/src

1 file changed

+4
-1
lines changed

src/tools/compiletest/src/lib.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,10 @@ fn make_test(cx: &TestCollectorCx, collector: &mut TestCollector, testpaths: &Te
907907

908908
// If a test's inputs haven't changed since the last time it ran,
909909
// mark it as ignored so that the executor will skip it.
910-
if !cx.config.force_rerun && is_up_to_date(cx, testpaths, &early_props, revision) {
910+
if !desc.ignore
911+
&& !cx.config.force_rerun
912+
&& is_up_to_date(cx, testpaths, &early_props, revision)
913+
{
911914
desc.ignore = true;
912915
// Keep this in sync with the "up-to-date" message detected by bootstrap.
913916
// FIXME(Zalathar): Now that we are no longer tied to libtest, we could

0 commit comments

Comments
 (0)