Skip to content

Commit b76559f

Browse files
committed
tests: enable subprocess coverage
Subprocess coverage used to be provided by default by pytest-cov, however that was removed in newer versions in favor of using the coverage patch functionality. Use the coverage patch functionality to re-enable coverage of subprocesses, re-enabling coverage for the remote tests. Signed-off-by: Rouven Czerwinski <rouven.czerwinski@linaro.org>
1 parent 6b40400 commit b76559f

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

.coveragerc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
[run]
22
omit =
33
labgrid/remote/generated/*
4+
patch = subprocess
45

56
[report]
67
exclude_lines =
@@ -11,4 +12,4 @@ exclude_lines =
1112
raise AssertionError
1213
raise NotImplementedError
1314
if 0:
14-
if __name__ == .__main__.:
15+
if __name__ == .__main__.:

0 commit comments

Comments
 (0)