From 6cb871b6ab672a060e96f2f931dbf4076b7aad20 Mon Sep 17 00:00:00 2001 From: Aditya Patwardhan Date: Thu, 22 Feb 2024 14:49:40 -0800 Subject: [PATCH] Skip test on Windows Server 2012 R2 for no-nl --- .../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'