[tests] Don't assume test assemblies are at a specific distance from the root directory. (#8066)

The RootPath finds the top '.git' directory, which should be good enough
always, so use that implementation instead.
This commit is contained in:
Rolf Bjarne Kvinge 2020-03-09 16:44:29 +01:00 коммит произвёл GitHub
Родитель c68700ad4f
Коммит 57db46af17
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -303,13 +303,8 @@ namespace Xamarin.Tests
public static string SourceRoot {
get {
// might need tweaking.
if (mt_src_root == null)
#if MONOMAC
mt_src_root = RootPath;
#else
mt_src_root = Path.GetFullPath (Path.Combine (TestAssemblyDirectory, "../../../.."));
#endif
return mt_src_root;
}
}