File tree Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Expand file tree Collapse file tree 1 file changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -102,13 +102,10 @@ function SuppressPwdParam()
102102 }
103103 }
104104
105- if (($PSVersionTable.PSVersion -ge [Version ]' 5.0' ))
106- {
107- Context " Rule suppression within DSC Configuration definition" {
108- It " Suppresses rule" {
109- $suppressedRule = Invoke-ScriptAnalyzer - ScriptDefinition $ruleSuppressionInConfiguration - SuppressedOnly
110- $suppressedRule.Count | Should Be 1
111- }
105+ Context " Rule suppression within DSC Configuration definition" {
106+ It " Suppresses rule" - skip:((Test-PSEditionCoreCLRLinux ) -or ($PSVersionTable.PSVersion -ge [Version ]' 5.0' )) {
107+ $suppressedRule = Invoke-ScriptAnalyzer - ScriptDefinition $ruleSuppressionInConfiguration - SuppressedOnly
108+ $suppressedRule.Count | Should Be 1
112109 }
113110 }
114111
You can’t perform that action at this time.
0 commit comments