diff --git a/KoreBuild-dotnet/build/_xunit-test.shade b/KoreBuild-dotnet/build/_xunit-test.shade index 77ba83c0d2..6714380165 100644 --- a/KoreBuild-dotnet/build/_xunit-test.shade +++ b/KoreBuild-dotnet/build/_xunit-test.shade @@ -41,6 +41,12 @@ projectFile='' { if (!framework.StartsWith("dnxcore")) { + if (IsLinux) + { + // Work around issue with testing in parallel on Mono. + testArgs = " -parallel none"; + } + var publishFolder = Path.Combine(projectFolder, ".testPublish", framework); DotnetPublish(projectFile, publishFolder, framework); Copy(runnerFolder, publishFolder, "*.*", true); @@ -48,7 +54,7 @@ projectFile='' var targetTestDll = projectName + ".dll"; var runnerExe = Path.GetFullPath(Path.Combine(publishFolder, "xunit.console.exe")); - ExecClr(runnerExe, targetTestDll, publishFolder); + ExecClr(runnerExe, testArgs + " " targetTestDll, publishFolder); } } }