test: ignore nala-legacy installation error

This commit is contained in:
Amin Yahyaabadi 2024-01-24 13:03:35 -08:00
parent 7fba762e3e
commit 87f57022f5
No known key found for this signature in database
GPG Key ID: F52AF77F636088F0
1 changed files with 7 additions and 1 deletions

View File

@ -17,6 +17,12 @@ describe("setup-nala", () => {
afterAll(() => { afterAll(() => {
// remove nala to run the rest of the tests with apt-get // remove nala to run the rest of the tests with apt-get
execRootSync("apt-get", ["remove", "-y", "nala"]) execRootSync("apt-get", ["remove", "-y", "nala"])
try {
execRootSync("apt-get", ["remove", "-y", "nala-legacy"]) execRootSync("apt-get", ["remove", "-y", "nala-legacy"])
} catch (err) {
// ignore
console.error(err)
}
}) })
}) })