File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ source "${CURRENT_DIR}/../integration_test_setup.sh" \
23
23
source " ${CURRENT_DIR} /coverage_helpers.sh" \
24
24
|| { echo " coverage_helpers.sh not found!" >&2 ; exit 1; }
25
25
26
-
27
26
function set_up_sh_test_coverage() {
28
27
add_rules_shell " MODULE.bazel"
29
28
add_rules_java " MODULE.bazel"
Original file line number Diff line number Diff line change 179
179
# TODO(bazel-team): cd should be avoided.
180
180
cd $ROOT
181
181
# Call the C++ code coverage collection script.
182
- if [[ " $CC_CODE_COVERAGE_SCRIPT " ]]; then
183
- eval " ${CC_CODE_COVERAGE_SCRIPT} "
182
+ if [[ -n " $GENERATE_LLVM_LCOV " && " $CC_CODE_COVERAGE_SCRIPT " ]]; then
183
+ if ! eval " ${CC_CODE_COVERAGE_SCRIPT} " && test -z " ${IGNORE_COVERAGE_COLLECTION_FAILURES:- } " ; then
184
+ echo " error: coverage collection script failed" >&2
185
+ exit 1
186
+ fi
184
187
fi
185
188
186
189
if [[ -z " $LCOV_MERGER " ]]; then
You can’t perform that action at this time.
0 commit comments