Skip to content
This repository has been archived by the owner on Dec 18, 2018. It is now read-only.

Commit

Permalink
Disable parallel test execution on Darwin only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesar Blum Silveira committed Jan 26, 2017
1 parent 4080265 commit b2d99b7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,18 @@
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.4.0-*" />
</ItemGroup>

<PropertyGroup Condition=" '$(OS)' == 'Unix' ">
<DefineConstants>$(DefineConstants);UNIX</DefineConstants>
<PropertyGroup>
<Uname></Uname>
</PropertyGroup>

<Target Condition="'$(OS)' == 'Unix'" Name="RunUname" BeforeTargets="Build">
<Exec Command="uname" ConsoleToMSBuild="true">
<Output TaskParameter="ConsoleOutput" PropertyName="Uname" />
</Exec>
</Target>

<PropertyGroup Condition="'$(Uname)' == 'Darwin'">
<DefineConstants>$(DefineConstants);DARWIN</DefineConstants>
</PropertyGroup>

</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

using Xunit;

#if UNIX
#if DARWIN
[assembly: CollectionBehavior(DisableTestParallelization = true)]
#endif
#endif

0 comments on commit b2d99b7

Please sign in to comment.