diff --git a/gerrit-acceptance-framework/src/test/java/com/google/gerrit/acceptance/PluginDaemonTest.java b/gerrit-acceptance-framework/src/test/java/com/google/gerrit/acceptance/PluginDaemonTest.java index f0b9f46afc..4c77edc586 100644 --- a/gerrit-acceptance-framework/src/test/java/com/google/gerrit/acceptance/PluginDaemonTest.java +++ b/gerrit-acceptance-framework/src/test/java/com/google/gerrit/acceptance/PluginDaemonTest.java @@ -43,7 +43,6 @@ public abstract class PluginDaemonTest extends AbstractDaemonTest { private static final String BUCKOUT = "buck-out"; private Path gen; - private Path testSite; private Path pluginRoot; private Path pluginsSitePath; private Path pluginSubPath; @@ -51,6 +50,8 @@ public abstract class PluginDaemonTest extends AbstractDaemonTest { private String pluginName; private boolean standalone; + protected Path testSite; + @Override protected void beforeTest(Description description) throws Exception { locatePaths(); @@ -58,9 +59,13 @@ public abstract class PluginDaemonTest extends AbstractDaemonTest { buildPluginJar(); createTestSiteDirs(); copyJarToTestSite(); + beforeTestServerStarts(); super.beforeTest(description); } + protected void beforeTestServerStarts() throws Exception { + } + protected void setPluginConfigString(String name, String value) throws IOException, ConfigInvalidException { SitePaths sitePath = new SitePaths(testSite);