From 8921a7dcad3d17806a6dc7776b31b461f477fbf7 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 22 Feb 2024 16:26:30 -0800 Subject: [PATCH] Skip test on Windows Server 2012 R2 for `no-nl` (#21265) --- .../Language/Scripting/I18n/I18n.Tests.ps1 | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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'