Skip to content

Commit fea3762

Browse files
committed
Reset numMachinesPerTest each loop
Signed-off-by: Adam Brousseau <[email protected]>
1 parent 925a668 commit fea3762

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pipelines/build/common/openjdk_build_pipeline.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,6 @@ class Build {
317317
List dynamicList = buildConfig.DYNAMIC_LIST
318318
List numMachines = buildConfig.NUM_MACHINES
319319
def enableTestDynamicParallel = Boolean.valueOf(buildConfig.ENABLE_TESTDYNAMICPARALLEL)
320-
def numMachinesPerTest = ''
321320

322321
testList.each { testType ->
323322

@@ -334,10 +333,11 @@ class Build {
334333

335334
def jobParams = getAQATestJobParams(testType)
336335
def parallel = 'None'
336+
def numMachinesPerTest = ''
337337

338338
if (enableTestDynamicParallel && dynamicList.contains(testType)) {
339339
numMachinesPerTest = numMachines.getAt(dynamicList.indexOf(testType))
340-
if (!numMachinesPerTest) {
340+
if (numMachinesPerTest) {
341341
// see build configuration in jdk*_pipeline_config.groovy
342342
// when numMachines is an array, its size should match the testLists size
343343
throw new Exception("No number of machines provided for running ${testType} tests in parallel, numMachines: ${numMachines}!")

0 commit comments

Comments
 (0)