[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:
Родитель
c68700ad4f
Коммит
57db46af17
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче