Skip to content

Commit 8d969d8

Browse files
committed
test: remove nala after testing it
1 parent 14a1b4d commit 8d969d8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/nala/__tests__/nala.test.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { setupNala } from "../nala"
22
import { testBin } from "../../utils/tests/test-helpers"
33
import { isUbuntu } from "../../utils/env/isUbuntu"
4+
import { execRootSync } from "admina"
45

56
jest.setTimeout(300000)
67
describe("setup-nala", () => {
@@ -12,4 +13,10 @@ describe("setup-nala", () => {
1213
const installInfo = await setupNala("", "", process.arch)
1314
await testBin("nala", ["--version"], installInfo?.binDir)
1415
})
16+
17+
afterAll(() => {
18+
// remove nala to run the rest of the tests with apt-get
19+
execRootSync("apt-get", ["remove", "-y", "nala"])
20+
execRootSync("apt-get", ["remove", "-y", "nala-legacy"])
21+
})
1522
})

0 commit comments

Comments
 (0)