We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4dcb37f commit 3d0d1f7Copy full SHA for 3d0d1f7
1 file changed
internal/node/launcher.sh
@@ -352,6 +352,15 @@ if [ "${EXPECTED_EXIT_CODE}" != "0" ]; then
352
fi
353
354
355
+# Do not collect coverage for failed tests
356
+if [ ${RESULT} -ne 0 ]; then
357
+ if [[ -n "${EXIT_CODE_CAPTURE}" ]]; then
358
+ exit 0
359
+ else
360
+ exit ${RESULT}
361
+ fi
362
+fi
363
+
364
# Post process the coverage information after the process has exited
365
if [[ -n "${COVERAGE_DIR:-}" ]]; then
366
if [[ -n "${VERBOSE_LOGS:-}" ]]; then
@@ -366,8 +375,8 @@ if [[ -n "${COVERAGE_DIR:-}" ]]; then
375
RESULT="$?"
367
376
set -e
368
377
369
- if [ ${RESULT} -ne 0 ]; then
370
- exit ${RESULT}
378
379
+ echo "${RESULT}" > "${EXIT_CODE_CAPTURE}"
371
380
372
381
373
382
0 commit comments