diff --git a/test/powershell/Language/Scripting/I18n/I18n.Tests.ps1 b/test/powershell/Language/Scripting/I18n/I18n.Tests.ps1 index bb3506aa9ec..2e617b7a7e9 100644 --- a/test/powershell/Language/Scripting/I18n/I18n.Tests.ps1 +++ b/test/powershell/Language/Scripting/I18n/I18n.Tests.ps1 @@ -110,6 +110,12 @@ string2=string2 ) { param ( $UICulture, $ExpectedString ) + if ($UICulture -eq 'no-NL' -and (Test-IsWinServer2012R2)) + { + Set-ItResult -Skipped -Because 'no-NL culture is not available on Windows Server 2012 R2' + return + } + [System.Globalization.CultureInfo]::CurrentUICulture = $UICulture $data = Import-LocalizedData -UICulture $UICulture @@ -123,6 +129,12 @@ string2=string2 ) { param ( $UICulture, $ExpectedString ) + if ($UICulture -eq 'no-NL' -and (Test-IsWinServer2012R2)) + { + Set-ItResult -Skipped -Because 'no-NL culture is not available on Windows Server 2012 R2' + return + } + [System.Globalization.CultureInfo]::CurrentUICulture = $UICulture $data = Import-LocalizedData -FileName 'I18n_altfilename'