test: coverage.sh includes flaky pass in union

This commit is contained in:
Andrew Hamilton 2026-09-10 10:22:36 +10:00
parent 1d8a4d4cee
commit 4e02988c5d

View file

@ -1,9 +1,9 @@
#!/bin/sh
# Line coverage of kick.c unioned across the test suite (gcc/gcov route).
#
# ./coverage.sh # always the full default suite, no args: partial runs
# # give a misleading union, and -n/pytest-xdist shares
# # .gcda files across workers (read-merge-write race),
# ./coverage.sh # always the full suite (default + flaky), no args:
# # partial runs give a misleading union, and -n/pytest-xdist
# # shares .gcda files across workers (read-merge-write race),
# # so parallel coverage is not supported.
#
# Builds build-cov/ instrumented (--coverage + KICK_COVERAGE flush hook for
@ -27,6 +27,7 @@ meson compile -C build-cov kick wltest
find build-cov -name '*.gcda' -delete
KICK_BIN="$PWD/build-cov/kick" pytest
KICK_BIN="$PWD/build-cov/kick" pytest -m flaky
echo "--- kick.c line coverage (union of all runs above) ---"
gcovr -r . --filter 'kick\.c$' --txt