Skip to content

Commit

Permalink
Don't fail bwc check if these are disabled (#38919)
Browse files Browse the repository at this point in the history
  • Loading branch information
alpar-t committed Feb 26, 2019
1 parent ddb20f1 commit 51551b7
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -174,12 +174,6 @@ if (project.gradle.startParameter.taskNames.find { it.startsWith("checkPart") }
// Disable BWC tests for checkPart* tasks as it's expected that this will run un it's own check
bwc_tests_enabled = false
}
if (project.gradle.startParameter.taskNames.contains("bwcTestSnapshots") && bwc_tests_enabled == false) {
throw new GradleException("BWC tests are disabled. " +
"This can happen if a branch happened to be created when they were disabled and can be solved by mergin at" +
"least to the commit on the parent branch that re-enabled them"
)
}

subprojects {
ext.bwc_tests_enabled = bwc_tests_enabled
Expand Down

0 comments on commit 51551b7

Please sign in to comment.