File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
TestProjects/FbxTests/Packages
com.unity.formats.fbx/Tests/Scripts Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 42
42
},
43
43
"registry" : " https://staging-packages.unity.com" ,
44
44
"testables" : [
45
- " com.unity.formats.fbx.tests "
45
+ " com.unity.formats.fbx"
46
46
]
47
47
}
Original file line number Diff line number Diff line change @@ -13,7 +13,8 @@ public abstract class ExporterTestBaseAPI
13
13
/// Use this path if you want to load some data for testing, e.g. a
14
14
/// material or scene or fbx.
15
15
/// </summary>
16
- public const string PathToTestData = "Packages/com.unity.formats.fbx.tests/Tests" ;
16
+ public const string PathToTestData = "Packages/com.unity.formats.fbx/Tests" ;
17
+ public const string AltPathToTestData = "Packages/com.unity.formats.fbx.tests/Tests" ;
17
18
18
19
/// <summary>
19
20
/// Sleep an amount of time (in ms) so we can safely assume that the
@@ -306,6 +307,11 @@ public static void AssertSameHierarchy (
306
307
public string FindPathInUnitTests ( string path ) {
307
308
// This used to be complicated; not so much anymore.
308
309
var virtualPath = PathToTestData + '/' + path ;
310
+ if ( ! System . IO . File . Exists ( virtualPath ) )
311
+ {
312
+ virtualPath = AltPathToTestData + '/' + path ;
313
+ }
314
+
309
315
if ( ! System . IO . File . Exists ( virtualPath ) ) {
310
316
return null ;
311
317
}
You can’t perform that action at this time.
0 commit comments