Skip to content

Commit

Permalink
Avoid running core rest yaml tests twice (#71005)
Browse files Browse the repository at this point in the history
  • Loading branch information
mark-vieira authored Mar 29, 2021
1 parent d407a96 commit 06d5f94
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,10 @@ public void apply(Project project) {
task.setCoreConfig(testConfig);
task.setXpackConfig(xpackTestConfig);
}
task.getIncludeCore().set(extension.getRestTests().getIncludeCore());
// If this is the rest spec project, don't copy the tests again
if (project.getPath().equals(":rest-api-spec") == false) {
task.getIncludeCore().set(extension.getRestTests().getIncludeCore());
}
task.getIncludeXpack().set(extension.getRestTests().getIncludeXpack());
task.getOutputResourceDir().set(project.getLayout().getBuildDirectory().dir("restResources/yamlTests"));
});
Expand Down

0 comments on commit 06d5f94

Please sign in to comment.