[macOS] Update condition for mono test case (#11515)

This commit is contained in:
sarathrajsrinivasan
2025-01-31 11:45:21 -06:00
committed by GitHub
parent 8273c96ed0
commit 002f86637a

View File

@@ -14,7 +14,8 @@ BeforeAll {
} }
} }
Describe "Mono" -Skip:($os.IsSequoia) { if ($os.IsVentura -or $os.IsSonoma) {
Describe "Mono" {
$MONO_VERSIONS_PATH = "/Library/Frameworks/Mono.framework/Versions" $MONO_VERSIONS_PATH = "/Library/Frameworks/Mono.framework/Versions"
$monoToolsetVersion = @((Get-ToolsetContent).mono.framework.version) $monoToolsetVersion = @((Get-ToolsetContent).mono.framework.version)
$versionFolderPath = Join-Path $MONO_VERSIONS_PATH ([System.Version]::Parse($monoToolsetVersion).ToString(3)) $versionFolderPath = Join-Path $MONO_VERSIONS_PATH ([System.Version]::Parse($monoToolsetVersion).ToString(3))
@@ -71,4 +72,5 @@ Describe "Mono" -Skip:($os.IsSequoia) {
It "MSBuild is available" { It "MSBuild is available" {
"msbuild -version" | Should -ReturnZeroExitCode "msbuild -version" | Should -ReturnZeroExitCode
} }
}
} }