no parallel on Linux

This commit is contained in:
Victor Hurdugaci 2015-12-18 15:55:14 -08:00
parent c626a599a7
commit 952fdd5a38
1 changed files with 7 additions and 1 deletions

View File

@ -41,6 +41,12 @@ projectFile=''
{ {
if (!framework.StartsWith("dnxcore")) 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); var publishFolder = Path.Combine(projectFolder, ".testPublish", framework);
DotnetPublish(projectFile, publishFolder, framework); DotnetPublish(projectFile, publishFolder, framework);
Copy(runnerFolder, publishFolder, "*.*", true); Copy(runnerFolder, publishFolder, "*.*", true);
@ -48,7 +54,7 @@ projectFile=''
var targetTestDll = projectName + ".dll"; var targetTestDll = projectName + ".dll";
var runnerExe = Path.GetFullPath(Path.Combine(publishFolder, "xunit.console.exe")); var runnerExe = Path.GetFullPath(Path.Combine(publishFolder, "xunit.console.exe"));
ExecClr(runnerExe, targetTestDll, publishFolder); ExecClr(runnerExe, testArgs + " " targetTestDll, publishFolder);
} }
} }
} }