From 952fdd5a38f4817f232d35135271c1f312f6fa7a Mon Sep 17 00:00:00 2001 From: Victor Hurdugaci Date: Fri, 18 Dec 2015 15:55:14 -0800 Subject: [PATCH] no parallel on Linux --- KoreBuild-dotnet/build/_xunit-test.shade | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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); } } }