[Bug 42179] New: Better detect which tests need to be rerun