From 50f1c72a1858a90abe2a5636b2b0ac303b161ad6 Mon Sep 17 00:00:00 2001 From: Alexey-Ayupov <116575425+Alexey-Ayupov@users.noreply.github.com> Date: Thu, 14 Sep 2023 11:21:42 +0200 Subject: [PATCH] [macos] Add exclusion for macOS 13 to the Xamarin test (#8274) --- images/macos/tests/Xamarin.Tests.ps1 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/images/macos/tests/Xamarin.Tests.ps1 b/images/macos/tests/Xamarin.Tests.ps1 index ad9e098fa..e610dbba8 100644 --- a/images/macos/tests/Xamarin.Tests.ps1 +++ b/images/macos/tests/Xamarin.Tests.ps1 @@ -2,10 +2,11 @@ Import-Module "$PSScriptRoot/../helpers/Common.Helpers.psm1" Import-Module "$PSScriptRoot/../helpers/Tests.Helpers.psm1" -DisableNameChecking $os = Get-OSVersion -$MONO_VERSIONS = Get-ToolsetValue "xamarin.mono-versions" -$XAMARIN_IOS_VERSIONS = Get-ToolsetValue "xamarin.ios-versions" -$XAMARIN_MAC_VERSIONS = Get-ToolsetValue "xamarin.mac-versions" -$XAMARIN_ANDROID_VERSIONS = Get-ToolsetValue "xamarin.android-versions" +if ((-not $os.IsVentura) -and (-not $os.IsVenturaArm64)) { + $MONO_VERSIONS = Get-ToolsetValue "xamarin.mono-versions" + $XAMARIN_IOS_VERSIONS = Get-ToolsetValue "xamarin.ios-versions" + $XAMARIN_MAC_VERSIONS = Get-ToolsetValue "xamarin.mac-versions" + $XAMARIN_ANDROID_VERSIONS = Get-ToolsetValue "xamarin.android-versions" BeforeAll { function Get-ShortSymlink { @@ -297,4 +298,6 @@ Describe "Nuget" -Skip:($os.IsVentura -or $os.IsVenturaArm64) { It "Nuget config contains nuget.org feed" { Get-Content $env:HOME/.config/NuGet/NuGet.Config | Out-String | Should -Match "nuget.org" } +} + } \ No newline at end of file