Skip to content

Commit

Permalink
skip the install/uninstall tests for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesWTruher committed May 14, 2024
1 parent e36cdb8 commit 77e8624
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions resources/apt/test/apt.tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,7 @@ Describe 'Apt resource tests' {
}

It 'Can install a package' {
if (-not $aptExists) {
Set-ItResult -Skip -Because "Apt not found"
}
Set-ItResult -Skip -Because "Apt requires sudo"

if (apt list $pkgname 2>&1 | Select-String installed ) {
apt remove -y $pkgname
Expand All @@ -68,9 +66,7 @@ Describe 'Apt resource tests' {
}

It 'Can uninstall a package' {
if (-not $aptExists) {
Set-ItResult -Skip -Because "Apt not found"
}
Set-ItResult -Skip -Because "Apt requires sudo"

if ($null -eq (apt list $pkgName 2>&1 | Select-String installed)) {
apt install -y $pkgname
Expand Down

0 comments on commit 77e8624

Please sign in to comment.