ci: Fix incremental coverage reports (#5552)

This commit is contained in:
Joey Parrish
2023-08-29 10:19:35 -07:00
committed by GitHub
parent 362f03ff3d
commit 7c2bfaa978
@@ -24,6 +24,9 @@ import zipfile
# TODO(joeyparrish): Figure out how to get karma to output relative paths only.
def StripGitDir(path):
# Convert Windows-style paths to Unix-style paths so we can read coverage
# data from Windows runners, too.
path = path.replace('\\', '/')
# Strip the path to the git clone, leaving only the source path within the
# repo.
return re.sub(r'.*?/(lib|ui)/', r'\1/', path)