Refactor GitCLMock to make types consistent
This is a follow-up to https://crrev.com//f41d2d3d4e8af. Reason: Previously, the results argument from MockGitCL would sometimes be a CLStatus, and sometimes be a dict of Build to TryJobStatus. Furthermore both try_job_results and wait_for_try_jobs would return the same type, which is longer the case for the real GitCL. The purpose of this CL is to make MockGitCL easier to use and also reflect the behavior of the actual GitCL class. Change-Id: I6d08dbdc205a1191b47039002b4a18a9579b022b Reviewed-on: https://chromium-review.googlesource.com/826707Reviewed-by:Raphael Kubo da Costa <raphael.kubo.da.costa@intel.com> Reviewed-by:
Robert Ma <robertma@chromium.org> Commit-Queue: Quinten Yearsley <qyearsley@chromium.org> Cr-Commit-Position: refs/heads/master@{#524121}
Showing
Please register or sign in to comment