瀏覽代碼

Do not run :plugins:repository-hdfs:test on windows (#106765)

before refactoring the hdfs test fixture setup this was implicitly
achieved by disabling test task for docker agent not available on
windows.
Rene Groeschke 1 年之前
父節點
當前提交
09583d99b1
共有 1 個文件被更改,包括 7 次插入0 次删除
  1. 7 0
      plugins/repository-hdfs/build.gradle

+ 7 - 0
plugins/repository-hdfs/build.gradle

@@ -7,6 +7,7 @@
  */
 
 import org.elasticsearch.gradle.internal.test.RestIntegTestTask
+import org.elasticsearch.gradle.OS
 import org.elasticsearch.gradle.internal.info.BuildParams
 
 apply plugin: 'elasticsearch.internal-java-rest-test'
@@ -106,6 +107,12 @@ tasks.register("yamlRestTestHdfs2", RestIntegTestTask) {
   classpath = sourceSets.yamlRestTest.runtimeClasspath + configurations.hdfsFixture2
 }
 
+tasks.named("test").configure {
+  onlyIf("Not running on windows") {
+    OS.current().equals(OS.WINDOWS) == false
+  }
+}
+
 tasks.named("check").configure {
   dependsOn(tasks.withType(RestIntegTestTask))
 }