Skip to content

Commit b9a629d

Browse files
authored
report: Use full path for downloaded grcov binary (#1092)
On my system trying to execute the command `grcov ...` raises an error: ``` FileNotFoundError: [Errno 2] No such file or directory: 'grcov' ``` But using `./grcov` works just fine. Use the full path regardless to avoid this issue.
1 parent 6ef2e98 commit b9a629d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

report/firefox_code_coverage/codecoverage.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -280,8 +280,8 @@ def generate_report(grcov_path, output_format, output_path, artifact_paths):
280280

281281

282282
def download_grcov():
283-
local_path = "grcov"
284-
local_version = "grcov_ver"
283+
local_path = os.path.join(os.getcwd(), "grcov")
284+
local_version = os.path.join(os.getcwd(), "grcov_ver")
285285

286286
dest = tempfile.mkdtemp(suffix="grcov")
287287
archive = os.path.join(dest, "grcov.tar.xz")

0 commit comments

Comments
 (0)