Skip to content

Commit 61313e3

Browse files
authored
Merge pull request #133 from aminya/llvm
2 parents 83ace57 + b562412 commit 61313e3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

src/llvm/__tests__/llvm.test.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
import { setupLLVM, VERSIONS, getUrl, setupClangTools, getLinuxUrl } from "../llvm"
22
import { getSpecificVersionAndUrl } from "../../utils/setup/version"
33
import { isUrlOnline } from "is-url-online"
4-
import { setupTmpDir, cleanupTmpDir, testBin } from "../../utils/tests/test-helpers"
4+
import { setupTmpDir, testBin } from "../../utils/tests/test-helpers"
55
import ciDetect from "@npmcli/ci-detect"
66
import execa from "execa"
77
import path, { addExeExt } from "patha"
88
import { chmodSync } from "fs"
99
import { getVersion } from "../../default_versions"
1010
import { ubuntuVersion } from "../../utils/env/ubuntu_version"
11+
import * as io from "@actions/io"
1112

1213
jest.setTimeout(400000)
1314
async function testUrl(version: string) {
@@ -123,8 +124,8 @@ describe("setup-llvm", () => {
123124
})
124125

125126
it("should setup LLVM 15.0.2", async () => {
126-
await cleanupTmpDir("llvm")
127-
await cleanupTmpDir("/Users/runner/hostedtoolcache/llvm")
127+
await io.rmRF(directory)
128+
await io.rmRF("/Users/runner/hostedtoolcache/llvm")
128129

129130
const { binDir } = await setupLLVM("15.0.2", directory, process.arch)
130131
await testBin("clang++", ["--version"], binDir)
@@ -143,6 +144,6 @@ describe("setup-llvm", () => {
143144
})
144145

145146
afterAll(async () => {
146-
await cleanupTmpDir("llvm")
147+
await io.rmRF(directory)
147148
}, 100000)
148149
})

0 commit comments

Comments
 (0)