Fix tests hanging if scripting compilation fails (eg. build tool issue)
This commit is contained in:
@@ -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() ||
|
||||
|
||||
Reference in New Issue
Block a user