From: jsimomaa Date: Mon, 24 Jul 2017 06:56:44 +0000 (+0300) Subject: Use single SCLOsgi.MODULE_REPOSITORY for ModelledSTSTest.run() X-Git-Tag: v1.31.0~264^2~39 X-Git-Url: https://gerrit.simantics.org/r/gitweb?a=commitdiff_plain;h=ba771b441183e53a5fa12b013ad3710ed2da32e1;p=simantics%2Fplatform.git Use single SCLOsgi.MODULE_REPOSITORY for ModelledSTSTest.run() refs #7378 Change-Id: Ib4a2b38cad5dbb275c2bdc69e89879878da72605 --- diff --git a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java index 0c0d8682a..3ce1b0158 100644 --- a/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java +++ b/bundles/org.simantics.tests.modelled/src/org/simantics/tests/modelled/utils/ModelledSTSTest.java @@ -99,7 +99,8 @@ public class ModelledSTSTest { } public List run(List vars) throws IOException { - ModuleRepository repo = new ModuleRepository(SCLOsgi.SOURCE_REPOSITORY); +// ModuleRepository repo = new ModuleRepository(SCLOsgi.SOURCE_REPOSITORY); + ModuleRepository repo = SCLOsgi.MODULE_REPOSITORY; CommandSession session = null; try { // repo.setAdvisor(new ModuleCompilationOptionsAdvisor() { @@ -139,7 +140,7 @@ public class ModelledSTSTest { return result; } finally { // remember to flush this repository - repo.flush(); +// repo.flush(); Builtins.flush(); JavaModule.flush(); }