[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.
This commit is contained in:
Rolf Bjarne Kvinge 2018-03-01 14:59:25 +01:00 коммит произвёл GitHub
Родитель ba99072326
Коммит 7d92085edd
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 6 добавлений и 0 удалений

Просмотреть файл

@ -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 ();