fix: 2019 tests work again (#3547)

This commit is contained in:
Robin Rolf 2023-07-09 06:22:59 +02:00 committed by GitHub
parent 629e50e4f9
commit 39211f9002
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -75,8 +75,9 @@ public static void OnCompilationFinished(string assemblyPath, CompilerMessage[]
return;
}
// Should not run on the editor only assemblies
if (assemblyPath.Contains("-Editor") || assemblyPath.Contains(".Editor"))
// Should not run on the editor only assemblies (test ones still need to be weaved)
if (assemblyPath.Contains("-Editor") ||
(assemblyPath.Contains(".Editor") && !assemblyPath.Contains(".Tests")))
{
return;
}