Skip to content

Commit

Permalink
Fix check for restricting invoking ecs tests directly
Browse files Browse the repository at this point in the history
  • Loading branch information
breskeby committed Sep 11, 2023
1 parent b364659 commit edd9a11
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions x-pack/plugin/stack/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ dependencies {
}

// These tests are only invoked direclty as part of a dedicated build job
tasks.named('javaRestTest').configure {
tasks.named('javaRestTest').configure {task ->
onlyIf("E2E test task must be invoked directly") {
gradle.startParameter.getTaskNames().contains(this.path) ||
(gradle.startParameter.getTaskNames().contains(this.name) && gradle.startParameter.currentDir == project.projectDir)
gradle.startParameter.getTaskNames().contains(task.path) ||
(gradle.startParameter.getTaskNames().contains(task.name) && gradle.startParameter.currentDir == project.projectDir)
}
}

Expand Down

0 comments on commit edd9a11

Please sign in to comment.