From 7d92085edd0a8e91a908ecb28fd8f9a20ef0c2cb Mon Sep 17 00:00:00 2001 From: Rolf Bjarne Kvinge Date: Thu, 1 Mar 2018 14:59:25 +0100 Subject: [PATCH] [xharness] Always build the test libraries before doing anything else. (#3601) (#3621) Fixes an issue where multiple projects would try to build the test libraries simultaneously. --- tests/xharness/Jenkins.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/xharness/Jenkins.cs b/tests/xharness/Jenkins.cs index 44a2e37d77..76cd32cfac 100644 --- a/tests/xharness/Jenkins.cs +++ b/tests/xharness/Jenkins.cs @@ -894,6 +894,7 @@ namespace xharness populating = false; }).Wait (); GenerateReport (); + BuildTestLibraries (); if (!IsServerMode) { foreach (var task in Tasks) tasks.Add (task.RunAsync ()); @@ -912,6 +913,11 @@ namespace xharness get { return Harness.JenkinsConfiguration == "server"; } } + void BuildTestLibraries () + { + ProcessHelper.ExecuteCommandAsync ("make", $"all -j{Environment.ProcessorCount} -C {StringUtils.Quote (Path.Combine (Harness.RootDirectory, "test-libraries"))}", MainLog, TimeSpan.FromMinutes (1)).Wait (); + } + Task RunTestServer () { var server = new HttpListener ();