mirror of https://github.com/aminya/setup-cpp
test: remove nala after testing it
This commit is contained in:
parent
14a1b4d654
commit
8d969d8dbd
|
@ -1,6 +1,7 @@
|
|||
import { setupNala } from "../nala"
|
||||
import { testBin } from "../../utils/tests/test-helpers"
|
||||
import { isUbuntu } from "../../utils/env/isUbuntu"
|
||||
import { execRootSync } from "admina"
|
||||
|
||||
jest.setTimeout(300000)
|
||||
describe("setup-nala", () => {
|
||||
|
@ -12,4 +13,10 @@ describe("setup-nala", () => {
|
|||
const installInfo = await setupNala("", "", process.arch)
|
||||
await testBin("nala", ["--version"], installInfo?.binDir)
|
||||
})
|
||||
|
||||
afterAll(() => {
|
||||
// remove nala to run the rest of the tests with apt-get
|
||||
execRootSync("apt-get", ["remove", "-y", "nala"])
|
||||
execRootSync("apt-get", ["remove", "-y", "nala-legacy"])
|
||||
})
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue