From 4e02988c5d1de0a053a3cc71e27fbbd66e1c7781 Mon Sep 17 00:00:00 2001 From: Andrew Hamilton Date: Thu, 10 Sep 2026 10:22:36 +1000 Subject: [PATCH] test: coverage.sh includes flaky pass in union --- coverage.sh | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/coverage.sh b/coverage.sh index 4209e7b..7a5acc4 100755 --- a/coverage.sh +++ b/coverage.sh @@ -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