We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8e99c7e commit 22b1c3aCopy full SHA for 22b1c3a
1 file changed
Tests/Engine/RuleSuppression.tests.ps1
@@ -102,13 +102,10 @@ function SuppressPwdParam()
102
}
103
104
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
- }
+ Context "Rule suppression within DSC Configuration definition" {
+ It "Suppresses rule" -skip:((Test-PSEditionCoreCLRLinux) -or ($PSVersionTable.PSVersion -ge [Version]'5.0')) {
+ $suppressedRule = Invoke-ScriptAnalyzer -ScriptDefinition $ruleSuppressionInConfiguration -SuppressedOnly
+ $suppressedRule.Count | Should Be 1
112
113
114
0 commit comments