Allow jvm tool tests to bootstrap from the artifact cache.
Review Request #2311 - Created June 2, 2015 and submitted
|jsirois, patricklaw, zundel|
This makes those tests quite a bit faster. For example, ./pants test tests/python/pants_test/backend/jvm/tasks:junit_run Runs in 35 seconds with no cached junit jar, but in under 5 seconds with. This was also a useful exercise in reasoning about test isolation: To use cached jars they must have the same path under .pants.d, and in our tests those paths included a randomly named tmpdir and a randomly named options scope. Switching those to stable names forced me to think about whether that was OK, and my conclusion was that it is, which is a good sign for our test isolation.
Ran tests locally before and after, and compared run times.
CI passes: https://travis-ci.org/pantsbuild/pants/builds/65024765.
Address code review comments: Remove a superfluous blank line, and put the dist dir directly under the build root.
Revision 2 (+86 -48)
Status: Closed (submitted)
Thanks John and Eric! Submitted as 45b49e7e06998307a06c363bf9af95d999e6fc94. Enjoy your faster tests!