mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2025-01-31 05:06:41 +00:00
coverage: replace source absolute path with '.'
This commit is contained in:
parent
34e1f55a7c
commit
e60f907720
|
@ -85,6 +85,7 @@
|
||||||
rclone
|
rclone
|
||||||
redis
|
redis
|
||||||
restic
|
restic
|
||||||
|
sonar-scanner-cli
|
||||||
self.packages.${system}.pytest-vm
|
self.packages.${system}.pytest-vm
|
||||||
# FIXME consider loading this explicitly only after ArchLinux issue is solved
|
# FIXME consider loading this explicitly only after ArchLinux issue is solved
|
||||||
self.checks.x86_64-linux.default.driverInteractive
|
self.checks.x86_64-linux.default.driverInteractive
|
||||||
|
@ -151,6 +152,7 @@
|
||||||
start_all()
|
start_all()
|
||||||
machine.succeed("cd ${vmtest-src-dir} && coverage run --data-file=/tmp/.coverage -m pytest -p no:cacheprovider -v >&2")
|
machine.succeed("cd ${vmtest-src-dir} && coverage run --data-file=/tmp/.coverage -m pytest -p no:cacheprovider -v >&2")
|
||||||
machine.succeed("cd ${vmtest-src-dir} && coverage xml --data-file=/tmp/.coverage -o /tmp/coverage.xml >&2")
|
machine.succeed("cd ${vmtest-src-dir} && coverage xml --data-file=/tmp/.coverage -o /tmp/coverage.xml >&2")
|
||||||
|
machine.succeed("sed 's/<source>${pkgs.lib.strings.escapeShellArg self.outPath}<\/source>/<source>.<\/source>/g' /tmp/coverage.xml")
|
||||||
machine.copy_from_vm("/tmp/coverage.xml", ".")
|
machine.copy_from_vm("/tmp/coverage.xml", ".")
|
||||||
machine.succeed("coverage report --rcfile=.coveragerc --data-file=/tmp/.coverage >&2")
|
machine.succeed("coverage report --rcfile=.coveragerc --data-file=/tmp/.coverage >&2")
|
||||||
'';
|
'';
|
||||||
|
|
Loading…
Reference in a new issue