Skip to content

Commit

Permalink
Skip test on Windows Server 2012 R2 for no-nl (PowerShell#21265)
Browse files Browse the repository at this point in the history
  • Loading branch information
adityapatwardhan committed Feb 23, 2024
1 parent cdb3331 commit 8921a7d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/powershell/Language/Scripting/I18n/I18n.Tests.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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'
Expand Down

0 comments on commit 8921a7d

Please sign in to comment.