diff --git a/src/test/shell/bazel/bazel_coverage_cc_test_llvm.sh b/src/test/shell/bazel/bazel_coverage_cc_test_llvm.sh index 5df5dbe37e0f7d..fe2d16db017c4d 100755 --- a/src/test/shell/bazel/bazel_coverage_cc_test_llvm.sh +++ b/src/test/shell/bazel/bazel_coverage_cc_test_llvm.sh @@ -373,16 +373,22 @@ function test_external_cc_target_coverage_not_collected_by_default() { [ "$clang_version" -lt 9 ] \ && echo "clang versions before 9.0 are not supported." && return 0 + "$clang" --version + local -r llvm_profdata="/usr/bin/llvm-profdata" if [[ ! -x ${llvm_profdata} ]]; then return fi + "$llvm_profdata" --version + local -r llvm_cov="/usr/bin/llvm-cov" if [[ ! -x ${llvm_cov} ]]; then return fi + "$llvm_cov" --version + setup_external_cc_target BAZEL_USE_LLVM_NATIVE_COVERAGE=1 GCOV=$llvm_profdata CC=$clang \