Use TestRepository's Git and Repository in acceptance tests

Avoid storing two references that have to be kept in sync, now that a
Git is available directly from TestRepository. Use a git() convenience
method to AbstractDaemonTest to shorten this. Similarly, add a repo()
convenience method to get the Repository.

Change-Id: I1ec8af8fead0876a2836f7972b5caf603847b25d
This commit is contained in:
Dave Borowitz
2015-03-18 09:00:13 -07:00
parent 3e027d60b8
commit e3612d0fb3
17 changed files with 76 additions and 77 deletions

View File

@@ -68,7 +68,7 @@ public abstract class AbstractPushForReview extends AbstractDaemonTest {
default:
throw new IllegalArgumentException("unexpected protocol: " + p);
}
setRepo(cloneProject(project, url + "/" + project.get()));
testRepo = cloneProject(project, url + "/" + project.get());
}
@Test