Commit 12db22cd authored by Tomasz Maczukin's avatar Tomasz Maczukin

Change parallel tests configuration ENV names

parent f7107223
......@@ -200,8 +200,8 @@ code_quality:
stage: test
script:
- JOB_NAME=( $CI_JOB_NAME )
- export SUITE_INDEX=${JOB_NAME[-2]}
- export SUITE_TOTAL=${JOB_NAME[-1]}
- export CI_NODE_INDEX=${JOB_NAME[-2]}
- export CI_NODE_TOTAL=${JOB_NAME[-1]}
- source ci/touch_make_dependencies
- make parallel_test_execute
artifacts:
......
......@@ -7,8 +7,8 @@ testsDefinitions="testsdefinitions.txt"
TESTFLAGS=${TESTFLAGS:-"-cover"}
PARALLEL_TESTS_LIMIT=${PARALLEL_TESTS_LIMIT:-10}
SUITE_TOTAL=${SUITE_TOTAL:-1}
SUITE_INDEX=${SUITE_INDEX:-0}
CI_NODE_TOTAL=${CI_NODE_TOTAL:-1}
CI_NODE_INDEX=${CI_NODE_INDEX:-0}
output="regular"
coverMode="count"
......@@ -121,13 +121,13 @@ executeTestPart() {
local numberOfDefinitions
numberOfDefinitions=$(< "${testsDefinitions}" wc -l)
local executionSize
executionSize=$((numberOfDefinitions/SUITE_TOTAL+1))
executionSize=$((numberOfDefinitions/CI_NODE_TOTAL+1))
local executionOffset
executionOffset=$((SUITE_INDEX*executionSize+1))
executionOffset=$((CI_NODE_INDEX*executionSize+1))
printMessage "Number of definitions: ${numberOfDefinitions}"
printMessage "Suite size: ${SUITE_TOTAL}"
printMessage "Suite index: ${SUITE_INDEX}"
printMessage "Suite size: ${CI_NODE_TOTAL}"
printMessage "Suite index: ${CI_NODE_INDEX}"
printMessage "Execution size: ${executionSize}"
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