[xharness] Don't group simulators when running in server mode. (#9098)

Grouping simulators means we have to wait until we know which simulators are
available, because we group by the simulator's UDID.

When running in server mode, we don't need to group simulator test runs,
because we run the as the user chooses, not in any particular order.

This way the test list loads faster at startup, since we don't have to wait
until we've loaded the simulators before we can show the list.
This commit is contained in:
Rolf Bjarne Kvinge 2020-07-16 08:20:51 +02:00 коммит произвёл GitHub
Родитель 839f586344
Коммит 4b0fd5529c
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
2 изменённых файлов: 9 добавлений и 0 удалений

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

@ -361,6 +361,12 @@ namespace Xharness.Jenkins {
continue;
}
var simulator = task as RunSimulatorTask;
if (simulator != null) {
allSimulatorTasks.Add (simulator);
continue;
}
if (task is DotNetTestTask dotnet) {
allDotNetTestTasks.Add (dotnet);
continue;

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

@ -72,6 +72,9 @@ namespace Xharness.Jenkins {
tunnelBore: jenkins.TunnelBore,
candidates: candidates?.Cast<SimulatorDevice> () ?? test.Candidates)).ToList ();
if (jenkins.IsServerMode)
return testVariations;
foreach (var tv in testVariations) {
if (!tv.Ignored)
await tv.FindSimulatorAsync ();