From 42c20a1bb4f3d8246364a222dbbb2e898e1d4c0d Mon Sep 17 00:00:00 2001 From: Jian Chen Date: Wed, 17 Jul 2024 15:55:07 -0400 Subject: [PATCH] find coverage_rpt.txt --- tools/ci_build/coverage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/ci_build/coverage.py b/tools/ci_build/coverage.py index 4d1690839dc20..b02576e0cf9a7 100644 --- a/tools/ci_build/coverage.py +++ b/tools/ci_build/coverage.py @@ -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"))