[xharness] Create better test clones when creating test variations. (#4062)

When creating test variations, make sure to set the 'IsUnitTest' field
properly, so that xharness produces better test reports.
This commit is contained in:
Rolf Bjarne Kvinge 2018-05-10 10:42:32 +02:00 коммит произвёл GitHub
Родитель fc9b799b86
Коммит e3bb98fa7e
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 1 добавлений и 1 удалений

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

@ -713,7 +713,7 @@ namespace xharness
TestName = project.Name,
IsUnitTest = true,
};
execs = CreateTestVariations (new [] { exec }, (buildTask, test) => new MacExecuteTask (buildTask));
execs = CreateTestVariations (new [] { exec }, (buildTask, test) => new MacExecuteTask (buildTask) { IsUnitTest = true } );
}
exec.Variation = configurations.Length > 1 ? config : project.TargetFrameworkFlavor.ToString ();