Fix tests hanging if scripting compilation fails (eg. build tool issue)

This commit is contained in:
Wojtek Figat
2022-11-28 20:34:50 +01:00
parent db6aab1cf6
commit 69ad8bc672

View File

@@ -26,6 +26,13 @@ TestsRunnerService TestsRunnerServiceInstance;
void TestsRunnerService::Update()
{
// End if failed to perform a startup
if (ScriptsBuilder::LastCompilationFailed())
{
Engine::RequestExit(-1);
return;
}
// Wait for Editor to be ready for running tests (eg. scripting loaded)
if (!ScriptsBuilder::IsReady() ||
!Scripting::IsEveryAssemblyLoaded() ||