浏览代码

Build: Fail integ test if elasticsearch fails to start on windows

Ryan Ernst 10 年之前
父节点
当前提交
f974d5e470
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

+ 1 - 1
buildSrc/src/main/groovy/org/elasticsearch/gradle/test/ClusterFormationTasks.groovy

@@ -139,7 +139,7 @@ class ClusterFormationTasks {
             // elasticsearch.bat is spawned as it has no daemon mode
             // elasticsearch.bat is spawned as it has no daemon mode
             start = project.tasks.create(name: "${task.name}#start", type: DefaultTask, dependsOn: setup) << {
             start = project.tasks.create(name: "${task.name}#start", type: DefaultTask, dependsOn: setup) << {
                 // Fall back to Ant exec task as Gradle Exec task does not support spawning yet
                 // Fall back to Ant exec task as Gradle Exec task does not support spawning yet
-                ant.exec(executable: 'cmd', spawn: true, dir: home) {
+                ant.exec(executable: 'cmd', spawn: true, dir: home, failonerror: true) {
                     esEnv.each { key, value -> env(key: key, value: value) }
                     esEnv.each { key, value -> env(key: key, value: value) }
                     (['/C', 'call', 'bin/elasticsearch'] + esArgs).each { arg(value: it) }
                     (['/C', 'call', 'bin/elasticsearch'] + esArgs).each { arg(value: it) }
                 }
                 }