Skip to content

Commit

Permalink
don't run the System.IO.FileSystem.DriveInfo tests in parallel (#62134)
Browse files Browse the repository at this point in the history
* don't run the System.IO.FileSystem.DriveInfo in parallel, fixes #62119

* unify disabling test parallelization per assembly
  • Loading branch information
adamsitnik authored Dec 1, 2021
1 parent 934aa7d commit 4aa8167
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 17 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

// Tests are old and depend on the static state
[assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)]
[assembly: Xunit.CollectionBehavior(DisableTestParallelization = true)]
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<Compile Include="DriveInfo.Windows.Tests.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="VirtualDrives.Windows.Tests.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(CommonTestPath)System\IO\VirtualDriveHelper.Windows.cs" Link="Common\System\IO\VirtualDriveHelper.Windows.cs" Condition="'$(TargetsWindows)' == 'true'" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<Compile Include="CharReaderTests.cs" />
<Compile Include="InheritedCases.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<Compile Include="CReaderTestModule.cs" />
<Compile Include="InheritedCases.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Compile Include="InheritedCases.cs" />
<Compile Include="Normalization.cs" />
<Compile Include="TCNormalization.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Compile Include="TCUserNameTable.cs" />
<Compile Include="TestFiles.cs" />
<Compile Include="XmlNameTable.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<Compile Include="TCOneByteStream.cs" />
<Compile Include="TCReaderSettings.cs" />
<Compile Include="TCRSGeneric.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\BaseLibManaged\BaseLibManaged.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<Compile Include="InheritedCases.cs" />
<Compile Include="SubtreeReaderTests.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<ItemGroup>
<Compile Include="InheritedCases.cs" />
<Compile Include="WrappedReaderTests.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<Compile Include="CXmlDriverVariation.cs" />
<Compile Include="ReaderFactory.cs" />
<Compile Include="WriterFactory.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
<Compile Include="TCNewLineChars.cs" />
<Compile Include="TCNewLineHandling.cs" />
<Compile Include="TCNewLineOnAttributes.cs" />
<Compile Include="DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
<Compile Include="TCOmitXmlDecl.cs" />
<Compile Include="TCStandAlone.cs" />
<Compile Include="TCWriteAttributes.cs" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<Compile Include="XmlIdeographicCharConvertTests1.cs" />
<Compile Include="XmlIdeographicCharConvertTests2.cs" />
<Compile Include="XmlIdeographicCharConvertTests3.cs" />
<Compile Include="$(CommonTestPath)System\Xml\DisableParallelization.cs" />
<Compile Include="$(CommonTestPath)TestUtilities\System\DisableParallelizationPerAssembly.cs" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="$(CommonTestPath)System\Xml\ModuleCore\ModuleCore.csproj" />
Expand Down

0 comments on commit 4aa8167

Please sign in to comment.