Commit f517e3cd authored by Tomasz Maczukin's avatar Tomasz Maczukin 🌴

Fix error detection mechanism

parent 69c92fb1
......@@ -93,11 +93,11 @@ executeTestCommand() {
testOutputFile=".testoutput/${pkgSlug}.${index}.${output}.output.txt"
exitCode=0
local exitCode=0
# shellcheck disable=SC2086
go test ${options} ${TESTFLAGS} -v "${pkg}" -run "${runTestsList}" 2>&1 | tee "${testOutputFile}" || exitCode=1
return $exitCode
return ${exitCode}
}
executeTestPart() {
......@@ -115,12 +115,12 @@ executeTestPart() {
printMessage "Execution size: ${executionSize}"
printMessage "Execution offset: ${executionOffset}"
exitCode=0
local exitCode=0
while read -r pkg index tests; do
executeTestCommand "${pkg}" "${index}" "${tests}" || exitCode=1
done < <(tail -n +${executionOffset} ${testsDefinitions} | head -n ${executionSize})
exit $exitCode
exit ${exitCode}
}
computeCoverageReport() {
......
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