ci/fixup-cov-paths: Ensure path replacement still works

Without doing this we were replacing the paths with the glib subfolder,
pointing to the wrong files.
This commit is contained in:
Marco Trevisan (Treviño) 2024-08-02 11:00:44 +02:00
parent c320bb0bf8
commit a04340a742

View File

@ -13,6 +13,7 @@ def main(argv):
print("cov-fixup:", path)
text = io.open(path, "r", encoding="utf-8").read()
text = text.replace("\\\\", "/")
text = text.replace("\\", "/")
old_root = re.search(":(.*?)/glib/.*?$", text, re.MULTILINE).group(1)
new_root = os.path.dirname(os.getcwd())
if old_root != new_root: