Skip to content

Commit

Permalink
Skip tests without failing
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jun 12, 2023
1 parent 4006a7a commit d166f8c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/test/shell/bazel/bazel_coverage_cc_test_llvm.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ function test_cc_test_llvm_coverage_doesnt_fail() {
}

function test_cc_test_llvm_coverage_produces_lcov_report() {
setup_llvm_coverage_tools_for_lcov
setup_llvm_coverage_tools_for_lcov || return 0
setup_a_cc_lib_and_t_cc_test

bazel coverage --test_output=all //:t &>$TEST_log || fail "Coverage for //:t failed"
Expand All @@ -169,7 +169,7 @@ end_of_record"
}

function test_cc_test_llvm_coverage_produces_lcov_report_with_split_postprocessing() {
setup_llvm_coverage_tools_for_lcov
setup_llvm_coverage_tools_for_lcov || return 0
setup_a_cc_lib_and_t_cc_test

bazel coverage \
Expand All @@ -196,7 +196,7 @@ end_of_record"
}

function test_cc_test_with_runtime_objects_not_in_runfiles() {
setup_llvm_coverage_tools_for_lcov
setup_llvm_coverage_tools_for_lcov || return 0

cat << EOF > BUILD
cc_test(
Expand Down Expand Up @@ -327,7 +327,7 @@ EOF
}

function test_external_cc_target_can_collect_coverage() {
setup_llvm_coverage_tools_for_lcov
setup_llvm_coverage_tools_for_lcov || return 0
setup_external_cc_target

bazel coverage --combined_report=lcov --test_output=all \
Expand Down Expand Up @@ -369,7 +369,7 @@ end_of_record'
}

function test_external_cc_target_coverage_not_collected_by_default() {
setup_llvm_coverage_tools_for_lcov
setup_llvm_coverage_tools_for_lcov || return 0
setup_external_cc_target

bazel coverage --combined_report=lcov --test_output=all \
Expand All @@ -396,7 +396,7 @@ end_of_record'
}

function test_coverage_with_tmp_in_path() {
setup_llvm_coverage_tools_for_lcov
setup_llvm_coverage_tools_for_lcov || return 0

mkdir -p foo/tmp
cat > foo/tmp/BUILD <<'EOF'
Expand Down

0 comments on commit d166f8c

Please sign in to comment.