test: fix llvm cache finding on ubuntu

This commit is contained in:
Amin Yahyaabadi 2022-05-05 19:45:47 -07:00
parent 9300754554
commit 20cc86b4f6
1 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ describe("setup-llvm", () => {
})
it("should find llvm in the cache", async () => {
const { binDir } = await setupLLVM(getVersion("llvm", "true"), directory, process.arch)
const { binDir } = await setupLLVM(getVersion("llvm", "true", await ubuntuVersion()), directory, process.arch)
await testBin("clang++", ["--version"], binDir)
if (isGitHubCI()) {
@ -113,7 +113,7 @@ describe("setup-llvm", () => {
})
it("should setup clang-tidy and clang-format", async () => {
const { binDir } = await setupClangTools(getVersion("llvm", "true"), directory, process.arch)
const { binDir } = await setupClangTools(getVersion("llvm", "true", await ubuntuVersion()), directory, process.arch)
await testBin("clang-tidy", ["--version"], binDir)
await testBin("clang-format", ["--version"], binDir)
})