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

Commit b2d99b7

Browse files
author
Cesar Blum Silveira
committed
Disable parallel test execution on Darwin only.
1 parent 4080265 commit b2d99b7

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests.csproj

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,18 @@
4343
<PackageReference Include="System.Runtime.Serialization.Primitives" Version="4.4.0-*" />
4444
</ItemGroup>
4545

46-
<PropertyGroup Condition=" '$(OS)' == 'Unix' ">
47-
<DefineConstants>$(DefineConstants);UNIX</DefineConstants>
46+
<PropertyGroup>
47+
<Uname></Uname>
48+
</PropertyGroup>
49+
50+
<Target Condition="'$(OS)' == 'Unix'" Name="RunUname" BeforeTargets="Build">
51+
<Exec Command="uname" ConsoleToMSBuild="true">
52+
<Output TaskParameter="ConsoleOutput" PropertyName="Uname" />
53+
</Exec>
54+
</Target>
55+
56+
<PropertyGroup Condition="'$(Uname)' == 'Darwin'">
57+
<DefineConstants>$(DefineConstants);DARWIN</DefineConstants>
4858
</PropertyGroup>
4959

5060
</Project>

test/Microsoft.AspNetCore.Server.Kestrel.FunctionalTests/Properties/AssemblyInfo.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
using Xunit;
55

6-
#if UNIX
6+
#if DARWIN
77
[assembly: CollectionBehavior(DisableTestParallelization = true)]
8-
#endif
8+
#endif

0 commit comments

Comments
 (0)