浏览代码

Update test case provider path handling to work properly with new .net runtime. (#1862)

/main
Peter Bay Bastian 6 年前
当前提交
19575c98
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 3
      com.unity.testframework.graphics/Runtime/EditorGraphicsTestCaseProvider.cs

3
com.unity.testframework.graphics/Runtime/EditorGraphicsTestCaseProvider.cs


var fullPathPrefix = string.Format("{0}/{1}/{2}/{3}/", referenceImageRoot, colorSpace, runtimePlatform, graphicsApi);
foreach (var assetPath in AssetDatabase.GetAllAssetPaths()
.Where(p => p.StartsWith(referenceImageRoot, StringComparison.OrdinalIgnoreCase))
.Where(p => fullPathPrefix.StartsWith(Path.GetDirectoryName(p)))
.Where(p => p.StartsWith(fullPathPrefix, StringComparison.OrdinalIgnoreCase))
.OrderBy(p => p.Count(ch => ch == '/')))
{
// Skip directories

正在加载...
取消
保存