Skip to content

Commit

Permalink
Fix condition to evaluate generated test cases and zunit processing (#…
Browse files Browse the repository at this point in the history
…382)

* Fix condition to evaluate generated test cases and zunit processing
Signed-off-by: Dennis Behm <[email protected]>
  • Loading branch information
dennis-behm authored Jul 11, 2023
1 parent 8a3dd0a commit ed7c200
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions utilities/ImpactUtilities.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def createImpactBuildList() {
// if the changed file has a build script then add to build list
if (ScriptMappings.getScriptName(changedFile)) {
// skip adding generated test cases, when the testing is disabled
if (buildUtils.isGeneratedzUnitTestCaseProgram(changedFile) || !(props.runzTests && props.runzTests.toBoolean())) {
if (buildUtils.isGeneratedzUnitTestCaseProgram(changedFile) && !(props.runzTests && props.runzTests.toBoolean())) {
if (props.verbose) println "** Identified $changedFile as a generated zunit test case program. Processing zUnit tests is not enabled for this build. Skip building this program."
} else {
buildSet.add(changedFile)
Expand Down Expand Up @@ -787,7 +787,7 @@ def boolean shouldCalculateImpacts(String changedFile){
if (onskipImpactCalculationList) return false

// return false if the changed file is a generated test case program but testing is disabled
if (buildUtils.isGeneratedzUnitTestCaseProgram(changedFile) || !(props.runzTests && props.runzTests.toBoolean())) {
if (buildUtils.isGeneratedzUnitTestCaseProgram(changedFile) && !(props.runzTests && props.runzTests.toBoolean())) {
return false
}

Expand Down

0 comments on commit ed7c200

Please sign in to comment.