Fix `BuildFileAddressMapper.scan_addresses`.

Review Request #2974 - Created Oct. 15, 2015 and submitted

Information
John Sirois
pants
jsirois/issues/2371/fix_scan
2371, 2372, 2376
2977, 2981
d3ecf07...
Reviewers
pants-reviews
benjyw, patricklaw, stuhood
Previously passing an alternate `root` did not work, and by extension,
neither did passing a custom root to `Context.scan`

Add a failing test that this change fixes as well as a test of the new
root validity checking code.

 src/python/pants/build_graph/build_file_address_mapper.py      | 34 ++++++++++++++--------
 tests/python/pants_test/backend/core/test_wrapped_globs.py     | 77 +++++++++++++++++++++++++++++++-------------------
 tests/python/pants_test/base/test_build_file_address_mapper.py | 18 ++++++++++--
 tests/python/pants_test/base/test_payload.py                   |  6 ++--
 4 files changed, 88 insertions(+), 47 deletions(-)
CI went green here:
  https://travis-ci.org/pantsbuild/pants/builds/85635735
John Sirois
Stu Hood
John Sirois
John Sirois
Review request changed

Status: Closed (submitted)

Patrick Lawson
Ship It!
Loading...