From 6333bf6bfa6669d409e021a34e4e1b6972a3d037 Mon Sep 17 00:00:00 2001 From: Amin Yahyaabadi Date: Fri, 17 Sep 2021 05:13:37 -0500 Subject: [PATCH] test: fix OpenCppCoverage path test --- src/opencppcoverage/__tests__/opencppcoverage.test.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/opencppcoverage/__tests__/opencppcoverage.test.ts b/src/opencppcoverage/__tests__/opencppcoverage.test.ts index 779aad7e..1e2fd554 100644 --- a/src/opencppcoverage/__tests__/opencppcoverage.test.ts +++ b/src/opencppcoverage/__tests__/opencppcoverage.test.ts @@ -7,8 +7,8 @@ describe("setup-OpenCppCoverage", () => { if (process.platform !== "win32") { return } - await setupOpencppcoverage("", "", process.arch) + const installationInfo = await setupOpencppcoverage("", "", process.arch) - await testBin("OpenCppCoverage", null) // OpenCppCoverage exits with non-zero even with --help + await testBin("OpenCppCoverage", null, installationInfo?.binDir) // OpenCppCoverage exits with non-zero even with --help }) })