From e5d7c702c736c8117b12fee6f4778c7ed5bcdecd Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Mon, 20 Sep 2021 07:30:10 -0500 Subject: [PATCH] feat: add activateOpencppcoverage --- src/opencppcoverage/opencppcoverage.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/opencppcoverage/opencppcoverage.ts b/src/opencppcoverage/opencppcoverage.ts index 0da064ee..a944bba5 100644 --- a/src/opencppcoverage/opencppcoverage.ts +++ b/src/opencppcoverage/opencppcoverage.ts @@ -7,7 +7,12 @@ export async function setupOpencppcoverage(version: string | undefined, _setupCp return } await setupChocoPack("opencppcoverage", version) - const binDir = "C:/Program Files/OpenCppCoverage" - addPath(binDir) + const binDir = activateOpencppcoverage() return { binDir } } + +function activateOpencppcoverage() { + const binDir = "C:/Program Files/OpenCppCoverage" + addPath(binDir) + return binDir +}