Add @Sandboxed annotation for classes and methods

There are some tests where it is especially hard to make sure that they
are not influenced by other tests in the same class. This includes all
indexer tests since some of them check the cardinality of a query result,
which might change as more entities are added by other tests.

Change-Id: I74b40b2e7f95894dd666dcd87d97fd29b2d67c51
This commit is contained in:
Patrick Hiesel
2016-09-21 22:30:58 +02:00
parent eba0a180db
commit 8a1b48219a
4 changed files with 75 additions and 5 deletions

View File

@@ -353,7 +353,8 @@ public abstract class AbstractDaemonTest {
baseConfig.setString("gerrit", null, "tempSiteDir",
tempSiteDir.getRoot().getPath());
baseConfig.setInt("receive", null, "changeUpdateThreads", 4);
if (classDesc.equals(methodDesc)) {
if (classDesc.equals(methodDesc) && !classDesc.sandboxed() &&
!methodDesc.sandboxed()) {
if (commonServer == null) {
commonServer = GerritServer.start(classDesc, baseConfig);
}