]> git.ipfire.org Git - thirdparty/systemd.git/commit - test/test-network/systemd-networkd-tests.py
test: loosen certain sandbox restrictions when collecting coverage
authorFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 21 Oct 2021 15:34:43 +0000 (17:34 +0200)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Thu, 21 Oct 2021 15:36:45 +0000 (17:36 +0200)
commit6c9efba67715cd1ced170ac46c04d47934ad276a
treeb979a8d30974eb031e3f39041ecd07ad00bfb229
parentdded88acb9320e3f16a97073c84a139a56e0def5
test: loosen certain sandbox restrictions when collecting coverage

With `ProtectSystem=strict` gcov is unable to write the *.gcda files
with collected coverage. Let's add a yet another switch to make such
restriction less strict to make gcov happy.

This addresses following errors:
```
...
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/binfmt-util.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/base-filesystem.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/barrier.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/ask-password-api.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/apparmor-util.c.gcda:Cannot open
systemd-networkd[272469]: profiling:/systemd-meson-build/src/shared/libsystemd-shared-249.a.p/acpi-fpdt.c.gcda:Cannot open
...
```
test/test-network/systemd-networkd-tests.py