Merge pull request #7058 from aws-lumberyard-dev/editor_log_fix
Temporary fix for editor log stomping during python tests
This commit is contained in:
@@ -2115,8 +2115,6 @@ bool CCryEditApp::FixDanglingSharedMemory(const QString& sharedMemName) const
|
||||
|
||||
int CCryEditApp::ExitInstance(int exitCode)
|
||||
{
|
||||
AZ_TracePrintf("Exit", "Called ExitInstance() with exit code: 0x%x", exitCode);
|
||||
|
||||
if (m_pEditor)
|
||||
{
|
||||
m_pEditor->OnBeginShutdownSequence();
|
||||
|
||||
@@ -315,7 +315,7 @@ class EditorTestSuite():
|
||||
return 8
|
||||
|
||||
## Internal ##
|
||||
_TIMEOUT_CRASH_LOG = 20 # Maximum time (seconds) for waiting for a crash file, in secondss
|
||||
_TIMEOUT_CRASH_LOG = 20 # Maximum time (seconds) for waiting for a crash file, in seconds
|
||||
_TEST_FAIL_RETCODE = 0xF # Return code for test failure
|
||||
|
||||
@pytest.fixture(scope="class")
|
||||
@@ -772,7 +772,8 @@ class EditorTestSuite():
|
||||
return_code = editor.get_returncode()
|
||||
editor_log_content = editor_utils.retrieve_editor_log_content(run_id, log_name, workspace)
|
||||
# Save the editor log
|
||||
workspace.artifact_manager.save_artifact(os.path.join(editor_utils.retrieve_log_path(run_id, workspace), log_name))
|
||||
workspace.artifact_manager.save_artifact(os.path.join(editor_utils.retrieve_log_path(run_id, workspace), log_name),
|
||||
f'({run_id}){log_name}')
|
||||
if return_code == 0:
|
||||
test_result = Result.Pass.create(test_spec, output, editor_log_content)
|
||||
else:
|
||||
@@ -847,7 +848,8 @@ class EditorTestSuite():
|
||||
return_code = editor.get_returncode()
|
||||
editor_log_content = editor_utils.retrieve_editor_log_content(run_id, log_name, workspace)
|
||||
# Save the editor log
|
||||
workspace.artifact_manager.save_artifact(os.path.join(editor_utils.retrieve_log_path(run_id, workspace), log_name))
|
||||
workspace.artifact_manager.save_artifact(os.path.join(editor_utils.retrieve_log_path(run_id, workspace), log_name),
|
||||
f'({run_id}){log_name}')
|
||||
if return_code == 0:
|
||||
# No need to scrap the output, as all the tests have passed
|
||||
for test_spec in test_spec_list:
|
||||
|
||||
Reference in New Issue
Block a user