Add a proper '--engines' parameter in testJavaScore task
@@ -38,6 +38,7 @@ class ChainTest extends Test {
String chainDir = ".chain/normal"
String gsFile = null
String gsDir = null
+ String engines = null
Process process = null
void startServer() {
@@ -54,6 +55,10 @@ class ChainTest extends Test {
commands.add("--genesis")
commands.add(gsDir)
}
+ if (engines != null) {
+ commands.add("--engines")
+ commands.add(engines)
+ }
def logLevel = System.getProperty("LOG_LEVEL")
if (logLevel != null && logLevel.length() != 0) {
commands.add("--log_level=" + logLevel)
@@ -146,7 +151,6 @@ task testNormal(type: ChainTest, overwrite: true) {
useJUnitPlatform {
includeTags "normal"
}
-
configFile = "./data/config.json"
chainDir = ".chain/normal"
logFile = "./normal.log"
@@ -170,6 +174,7 @@ task testJavaScore(type: ChainTest, overwrite: true) {
configFile = "./data/govConfig.json"
logFile = "./javaee.log"
chainDir = ".chain/javaee"
+ engines = "python,java"
dependsOn cleanTest
testLogging.showStandardStreams = true
