Skip to content

Commit

Permalink
find coverage_rpt.txt
Browse files Browse the repository at this point in the history
  • Loading branch information
jchen351 committed Jul 17, 2024
1 parent 5c77a1a commit 42c20a1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/ci_build/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,11 +54,11 @@ def adb_shell(*args, **kwargs):
os.chdir(cwd)
run_subprocess("tar -zxf gcda_files.tar.gz -C CMakeFiles".split(" "),cwd=cwd)
run_subprocess(f"find {source_dir} -name testcase_driver.cc.gcda".split(" "),cwd=cwd)
run_subprocess(f"find {source_dir} -name coverage_rpt.txt".split(" "),cwd=cwd)
cmd = ["gcovr", "-s", "-r"]
cmd.append(os.path.join(source_dir, "onnxruntime"))
cmd.extend([".", "-o"])
cmd.append(os.path.join(cwd, "coverage_rpt.txt"))
cmd.append("--verbose")
run_subprocess(cmd, cwd=os.path.join(cwd, "CMakeFiles"))


Expand Down

0 comments on commit 42c20a1

Please sign in to comment.