tests: collect coverage from daemonized borg mount processes

Fixes #9448.

borg mount forks into a background daemon, so coverage was missing the process that actually handles the FUSE requests, leaving fuse.py and hlfuse.py at 0%.

Enable coverage patches:

    patch = ["subprocess", "_exit"]

This lets coverage follow spawned subprocesses and still record data for paths that terminate via os._exit().

(cherry picked from commit 6df608ab6b)
This commit is contained in:
Divyesh 2026-03-08 01:53:26 +05:30 committed by github-actions[bot]
parent c7fa503565
commit 5c42d34a1d

View file

@ -255,8 +255,6 @@ labels = ["lint"]
branch = true
disable_warnings = ["module-not-measured", "no-ctracer"]
patch = ["subprocess", "_exit"]
parallel = true
sigterm = true
source = ["src/borg"]
omit = [
"*/borg/__init__.py",