summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2022-11-01 19:04:45 +0100
committerGitHub <noreply@github.com>2022-11-01 19:04:45 +0100
commit23aef6bb945dc53d68af85820d7d9653d691e0ad (patch)
tree4312e02c4cac3d9ecc0492b0e3023e93692e925e /share
parent973b43b1c1340bd84c4f193f19a6ad01d8de8edb (diff)
downloadspack-23aef6bb945dc53d68af85820d7d9653d691e0ad.tar.gz
spack-23aef6bb945dc53d68af85820d7d9653d691e0ad.tar.bz2
spack-23aef6bb945dc53d68af85820d7d9653d691e0ad.tar.xz
spack-23aef6bb945dc53d68af85820d7d9653d691e0ad.zip
Let pytest-cov create the xml directly (#33619)
`coverage` sometimes failed to combine, even if there were multiple reports.
Diffstat (limited to 'share')
-rwxr-xr-xshare/spack/qa/run-unit-tests2
1 files changed, 1 insertions, 1 deletions
diff --git a/share/spack/qa/run-unit-tests b/share/spack/qa/run-unit-tests
index 478e582242..842a00caf2 100755
--- a/share/spack/qa/run-unit-tests
+++ b/share/spack/qa/run-unit-tests
@@ -66,7 +66,7 @@ fi
# where it seems that otherwise the configuration file might not be located by subprocesses
# in some, not better specified, cases.
if [[ "$UNIT_TEST_COVERAGE" == "true" ]]; then
- $(which spack) unit-test -x --verbose --cov --cov-config=pyproject.toml
+ $(which spack) unit-test -x --verbose --cov --cov-config=pyproject.toml --cov-report=xml:coverage.xml
else
$(which spack) unit-test -x --verbose
fi