Skip to content

Commit 856a6db

Browse files
committed
Tweak lcov commands to not delete everything
1 parent 7773959 commit 856a6db

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/cron-ci.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,9 @@ jobs:
4545
local tool=$1; shift; "$(rustc --print target-libdir)/../bin/llvm-$tool" "$@"
4646
}
4747
rusttool profdata merge extra_tests/snippet-*.profraw regrtest.profraw --output codecov.profdata
48-
rusttool cov export --instr-profile codecov.profdata target/release/rustpython --format lcov >codecov.lcov
49-
lcov -r codecov.lcov '/*' -o codecov.lcov
48+
rusttool cov export --instr-profile codecov.profdata target/release/rustpython --format lcov > codecov_tmp.lcov
49+
lcov -e codecov_tmp.lcov "$PWD"/'*' -o codecov_tmp2.lcov
50+
lcov -r codecov_tmp2.lcov "$PWD"/target/'*' -o codecov.lcov # remove LALRPOP-generated parser
5051
- name: upload to Codecov
5152
uses: codecov/codecov-action@v3
5253
with:

0 commit comments

Comments
 (0)