Skip to content

Commit f61dd0e

Browse files
committed
fix: fix the kcov binDir
1 parent 4d96d91 commit f61dd0e

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/kcov/__tests__/kcov.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ describe("setup-Kcov", () => {
1111
return
1212
}
1313

14-
it("should setup Kcov v40", async () => {
14+
it("should setup Kcov v40 via downloading the binaries", async () => {
1515
const directory = await setupTmpDir("kcov-v40")
1616
const { binDir } = (await setupKcov("40-binary", directory, "")) as InstallationInfo
1717
// the prebuild binary only works on ubuntu 20.04
@@ -23,14 +23,14 @@ describe("setup-Kcov", () => {
2323
await cleanupTmpDir("kcov-v40")
2424
})
2525

26-
it("should setup Kcov v40", async () => {
26+
it("should build and setup Kcov v40", async () => {
2727
const directory = await setupTmpDir("kcov-v40")
2828
const { binDir } = (await setupKcov("40", directory, "")) as InstallationInfo
2929
await testBin("kcov", ["--version"], binDir)
3030
await cleanupTmpDir("kcov-v40")
3131
})
3232

33-
it("should setup Kcov v39", async () => {
33+
it("should build and setup Kcov v39", async () => {
3434
const directory = await setupTmpDir("kcov-v39")
3535
const { binDir } = (await setupKcov("39", directory, "")) as InstallationInfo
3636
await testBin("kcov", ["--version"], binDir)
@@ -45,7 +45,7 @@ describe("setup-Kcov", () => {
4545
// await cleanupTmpDir("kcov-v39")
4646
// })
4747

48-
it("should setup Kcov v38", async () => {
48+
it("should build and setup Kcov v38", async () => {
4949
try {
5050
const directory2 = await setupTmpDir("kcov-v38")
5151

src/kcov/kcov.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ async function buildKcov(file: string, dest: string) {
5959
await execa("cmake", ["--build", "./build", "--config", "Release"], { cwd: out, stdio: "inherit" })
6060
// execSudo("cmake", ["--install", "./build"], out)
6161
// return "user/local/bin" // the cmake install prefix
62-
return out
62+
return join(out, "build")
6363
}
6464

6565
export async function setupKcov(versionGiven: string, setupDir: string, arch: string) {

0 commit comments

Comments
 (0)