Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip Microsoft.XmlSerializer.Generator.Tests on FreeBSD #35494

Merged
merged 1 commit into from
Apr 27, 2020

Conversation

wfurt
Copy link
Member

@wfurt wfurt commented Apr 27, 2020

breaks build.sh -subset libs.tests -os FreeBSD

Executing test dotnet will not work for cross-targets.
We may gave better way how to track this but for now I'm just adding another TargetOS here.

cc: @am11

@wfurt wfurt added the os-freebsd FreeBSD OS label Apr 27, 2020
@wfurt wfurt requested review from ViktorHofer and safern April 27, 2020 05:26
@wfurt wfurt self-assigned this Apr 27, 2020
@ViktorHofer ViktorHofer merged commit 0f82918 into dotnet:master Apr 27, 2020
@ViktorHofer
Copy link
Member

@@ -3,7 +3,7 @@
<DefineConstants>$(DefineConstants);XMLSERIALIZERGENERATORTESTS</DefineConstants>
<TargetFrameworks>$(NetCoreAppCurrent)</TargetFrameworks>
<CoverageSupported>false</CoverageSupported>
<SkipTestsOnPlatform Condition="'$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetArchitecture)' == 'arm' or '$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'armel' or '$(TargetArchitecture)' == 'wasm'">true</SkipTestsOnPlatform>
<SkipTestsOnPlatform Condition="'$(TargetOS)' == 'FreeBSD' or '$(TargetOS)' == 'iOS' or '$(TargetOS)' == 'tvOS' or '$(TargetArchitecture)' == 'arm' or '$(TargetArchitecture)' == 'arm64' or '$(TargetArchitecture)' == 'armel' or '$(TargetArchitecture)' == 'wasm'">true</SkipTestsOnPlatform>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It was failing in cross build, since this test tries to invoke artifacts/bin/testhost/netcoreapp5.0-FreeBSD-Release-x64/dotnet executable, which is target-compatible on host during the build.
I think we change this condition to check if cross build is true, so it still builds on the device/OS? This will also hold for Android on-device build.

@ghost ghost locked as resolved and limited conversation to collaborators Dec 9, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants