Skip to content

Commit

Permalink
test: use absolute path for profile
Browse files Browse the repository at this point in the history
Signed-off-by: Zxilly <[email protected]>
  • Loading branch information
Zxilly committed Jul 11, 2024
1 parent 90dddfa commit c7bb578
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions scripts/tool/merge.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,13 @@ def merge_covdata_dir(d: str, output: str):
enhance_coverage(tmp.name, output)
log(f"Enhanced coverage data from {d}.")

if not os.path.exists(output):
raise Exception("Failed to merge coverage data.")

merge_covdata_dir(get_covdata_unit_dir(), "unit.profile")
merge_covdata_dir(get_covdata_integration_dir(), "integration.profile")
def abs_path(s: str):
return os.path.abspath(s)

merge_covdata_dir(get_covdata_unit_dir(), abs_path("unit.profile"))
merge_covdata_dir(get_covdata_integration_dir(), abs_path("integration.profile"))

log("Merged coverage data.")

0 comments on commit c7bb578

Please sign in to comment.