Ensure enumeration caches are always updated

This commit is contained in:
jonawals
2021-05-27 14:19:08 +01:00
parent 1936dbc0d1
commit e9daed723a
@@ -190,10 +190,8 @@ namespace TestImpact
// Populate a set with the selected test targets so that we can infer the discarded test target not selected for this change list
const AZStd::unordered_set<const TestTarget*> selectedTestTargetSet(selectedTestTargets.begin(), selectedTestTargets.end());
if (m_testShardingPolicy == Policy::TestSharding::Always)
{
EnumerateMutatedTestTargets(changeDependecyList);
}
// Update the enumeration caches of mutated targets regardless of the current sharding policy
EnumerateMutatedTestTargets(changeDependecyList);
// The test targets in the main list not in the selected test target set are the test targets not selected for this change list
for (const auto& testTarget : m_dynamicDependencyMap->GetTestTargetList().GetTargets())