Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion tests/xharness/Jenkins.cs
Original file line number Diff line number Diff line change
Expand Up @@ -931,9 +931,15 @@ protected override async Task ExecuteAsync ()

class XBuildTask : BuildToolTask
{
public bool SupportsParallelBuilds {
get {
return Platform.ToString ().StartsWith ("Mac", StringComparison.Ordinal);
}
}

protected override async Task ExecuteAsync ()
{
using (var resource = await Jenkins.DesktopResource.AcquireConcurrentAsync ()) {
using (var resource = await (SupportsParallelBuilds ? Jenkins.DesktopResource.AcquireConcurrentAsync () : Jenkins.DesktopResource.AcquireExclusiveAsync ())) {
using (var xbuild = new Process ()) {
xbuild.StartInfo.FileName = "xbuild";
var args = new StringBuilder ();
Expand Down