[XHarness] Use better names for BCL watchOS tests. (#5867)

Ensure we do not use the target dir because that does not represent the
name of the test because it is shared by all of them.

Fixes https://github.com/xamarin/xamarin-macios/issues/5157
This commit is contained in:
Manuel de la Pena 2019-04-08 19:22:22 +02:00 коммит произвёл GitHub
Родитель af9645410f
Коммит c9b834ddaa
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 4 добавлений и 1 удалений

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

@ -209,7 +209,10 @@ namespace xharness
protected override void CalculateName ()
{
base.CalculateName ();
if (TargetDirectory.Contains ("BCLTests"))
Name = TestProject.Name;
else
base.CalculateName ();
if (MonoNativeInfo != null)
Name = Name + MonoNativeInfo.FlavorSuffix;
}