From b9bea0a2620c0b8455604943910da5eed6683d59 Mon Sep 17 00:00:00 2001 From: Andrew Halberstadt Date: Wed, 8 Sep 2021 16:04:47 -0400 Subject: [PATCH] Use full path for downloaded grcov binary 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. --- report/firefox_code_coverage/codecoverage.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/report/firefox_code_coverage/codecoverage.py b/report/firefox_code_coverage/codecoverage.py index d708b822d..13658636c 100644 --- a/report/firefox_code_coverage/codecoverage.py +++ b/report/firefox_code_coverage/codecoverage.py @@ -280,8 +280,8 @@ def generate_report(grcov_path, output_format, output_path, artifact_paths): def download_grcov(): - local_path = "grcov" - local_version = "grcov_ver" + local_path = os.path.join(os.getcwd(), "grcov") + local_version = os.path.join(os.getcwd(), "grcov_ver") dest = tempfile.mkdtemp(suffix="grcov") archive = os.path.join(dest, "grcov.tar.xz")