Skip to content

Commit e7f1e71

Browse files
committed
skip the install/uninstall tests for now.
1 parent 679efe9 commit e7f1e71

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

resources/apt/test/apt.tests.ps1

+2-6
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,7 @@ Describe 'Apt resource tests' {
5454
}
5555

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

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

7068
It 'Can uninstall a package' {
71-
if (-not $aptExists) {
72-
Set-ItResult -Skip -Because "Apt not found"
73-
}
69+
Set-ItResult -Skip -Because "Apt requires sudo"
7470

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

0 commit comments

Comments
 (0)