Skip to content

Commit dfab88a

Browse files
committed
fix tests breaking on Yamato
1 parent a0776c2 commit dfab88a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

com.unity.formats.fbx/Tests/Scripts/ExporterTestBaseAPI.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ public abstract class ExporterTestBaseAPI
1414
/// material or scene or fbx.
1515
/// </summary>
1616
public const string PathToTestData = "Packages/com.unity.formats.fbx/Tests";
17+
public const string AltPathToTestData = "Packages/com.unity.formats.fbx.tests/Tests";
1718

1819
/// <summary>
1920
/// Sleep an amount of time (in ms) so we can safely assume that the
@@ -306,6 +307,11 @@ public static void AssertSameHierarchy (
306307
public string FindPathInUnitTests(string path) {
307308
// This used to be complicated; not so much anymore.
308309
var virtualPath = PathToTestData + '/' + path;
310+
if (!System.IO.File.Exists(virtualPath))
311+
{
312+
virtualPath = AltPathToTestData + '/' + path;
313+
}
314+
309315
if (!System.IO.File.Exists(virtualPath)) {
310316
return null;
311317
}

0 commit comments

Comments
 (0)