Change parallel tests configuration ENV names

parent f7107223
...@@ -200,8 +200,8 @@ code_quality: ...@@ -200,8 +200,8 @@ code_quality:
stage: test stage: test
script: script:
- JOB_NAME=( $CI_JOB_NAME ) - JOB_NAME=( $CI_JOB_NAME )
- export SUITE_INDEX=${JOB_NAME[-2]} - export CI_NODE_INDEX=${JOB_NAME[-2]}
- export SUITE_TOTAL=${JOB_NAME[-1]} - export CI_NODE_TOTAL=${JOB_NAME[-1]}
- source ci/touch_make_dependencies - source ci/touch_make_dependencies
- make parallel_test_execute - make parallel_test_execute
artifacts: artifacts:
......
...@@ -7,8 +7,8 @@ testsDefinitions="testsdefinitions.txt" ...@@ -7,8 +7,8 @@ testsDefinitions="testsdefinitions.txt"
TESTFLAGS=${TESTFLAGS:-"-cover"} TESTFLAGS=${TESTFLAGS:-"-cover"}
PARALLEL_TESTS_LIMIT=${PARALLEL_TESTS_LIMIT:-10} PARALLEL_TESTS_LIMIT=${PARALLEL_TESTS_LIMIT:-10}
SUITE_TOTAL=${SUITE_TOTAL:-1} CI_NODE_TOTAL=${CI_NODE_TOTAL:-1}
SUITE_INDEX=${SUITE_INDEX:-0} CI_NODE_INDEX=${CI_NODE_INDEX:-0}
output="regular" output="regular"
coverMode="count" coverMode="count"
...@@ -121,13 +121,13 @@ executeTestPart() { ...@@ -121,13 +121,13 @@ executeTestPart() {
local numberOfDefinitions local numberOfDefinitions
numberOfDefinitions=$(< "${testsDefinitions}" wc -l) numberOfDefinitions=$(< "${testsDefinitions}" wc -l)
local executionSize local executionSize
executionSize=$((numberOfDefinitions/SUITE_TOTAL+1)) executionSize=$((numberOfDefinitions/CI_NODE_TOTAL+1))
local executionOffset local executionOffset
executionOffset=$((SUITE_INDEX*executionSize+1)) executionOffset=$((CI_NODE_INDEX*executionSize+1))
printMessage "Number of definitions: ${numberOfDefinitions}" printMessage "Number of definitions: ${numberOfDefinitions}"
printMessage "Suite size: ${SUITE_TOTAL}" printMessage "Suite size: ${CI_NODE_TOTAL}"
printMessage "Suite index: ${SUITE_INDEX}" printMessage "Suite index: ${CI_NODE_INDEX}"
printMessage "Execution size: ${executionSize}" printMessage "Execution size: ${executionSize}"
printMessage "Execution offset: ${executionOffset}" printMessage "Execution offset: ${executionOffset}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment