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().
This commit is contained in:
Divyesh 2026-03-08 01:53:26 +05:30 committed by GitHub
parent 00ab5b0f25
commit 6df608ab6b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -282,8 +282,6 @@ commands = [["bandit", "-r", "src/borg", "-c", "pyproject.toml"]]
branch = true
disable_warnings = ["module-not-measured", "no-ctracer"]
patch = ["subprocess", "_exit"]
parallel = true
sigterm = true
source = ["src/borg"]
omit = [
"*/borg/__init__.py",