Skip to content

Commit 2100b53

Browse files
SteveL-MSFTSteve Lee (POWERSHELL HE/HIM) (from Dev Box)
authored andcommitted
Fix skipping test on non-windows
1 parent 48be833 commit 2100b53

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

extensions/appx/appx.tests.ps1

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,8 @@
11
# Copyright (c) Microsoft Corporation.
22
# Licensed under the MIT License.
33

4-
Describe 'Tests for Appx resource discovery' {
5-
BeforeAll {
6-
$skip = (!$IsWindows -or ($null -eq (Get-Command Get-AppxPackage -ErrorAction Ignore)) -or ($null -eq (get-appxpackage -Name Microsoft.DesiredStateConfiguration-Preview)))
7-
}
8-
9-
It 'Should find DSC appx resources' -Skip:$skip {
4+
Describe 'Tests for Appx resource discovery' -Skip:(!$IsWindows){
5+
It 'Should find DSC appx resources' {
106
$out = dsc resource list | ConvertFrom-Json
117
$LASTEXITCODE | Should -Be 0
128
$found = $false

0 commit comments

Comments
 (0)