Disable Gitweb for in-memory acceptance tests

Acceptance tests run in-memory if the @UseLocalDisk annotation is not
used and therefore, there is no gerrit_site. If Gitweb is installed,
it will be automatically configured and its configuration file will be
written in the gerrit_site/tmp folder. Disable Gitweb for in-memory
acceptance tests otherwise we end up with a UNIT_TEST_GERRIT_SITE/tmp
folder that is not cleaned up after the tests.

Change-Id: Ie3e55313cb8e9e4af53b0fb6f12f6bb6a80f1d7a
This commit is contained in:
Hugo Arès
2014-07-10 12:53:50 -04:00
parent 9ae290b489
commit c99c5d9c59

View File

@@ -71,6 +71,7 @@ public class GerritServer {
cfg.setBoolean("httpd", null, "requestLog", false);
cfg.setBoolean("sshd", null, "requestLog", false);
cfg.setBoolean("index", "lucene", "testInmemory", true);
cfg.setString("gitweb", null, "cgi", "");
daemon.setEnableHttpd(enableHttpd);
daemon.setLuceneModule(new LuceneIndexModule(
ChangeSchemas.getLatest().getVersion(),