Allow alternate_target_roots to specify an empty collection
Review Request #3216 - Created Dec. 7, 2015 and submitted
|Nick Howard (Twitter)|
|benjyw, jsirois, peiyu, zundel|
For tasks like test-changed, it makes sense for them to become no-ops when there are no changed targets. This patch allows alternates to be set to an empty set so that test-changed will run no tests when there are no changed targets rather than running all the tests.
Wrote a test case for the desired behavior that failed, then changed the implementation to make it pass. Running CI on travis @ https://travis-ci.org/pantsbuild/pants/builds/95426218 CI passed.
Status: Closed (submitted)
Submitted at https://github.com/pantsbuild/pants/commit/279dfc9353e88a79c98c608a15e88c2501240f5c