Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collects failed assets on LyTestTools test failures #7368

Merged
merged 10 commits into from
Feb 10, 2022
Prev Previous commit
Next Next commit
Made asset log collection non failing
Signed-off-by: evanchia <evanchia@amazon.com>
  • Loading branch information
evanchia-ly-sdets committed Feb 7, 2022
commit 7b574fe1a214b9564e3d01b7d87a60c55cad3cc2
10 changes: 8 additions & 2 deletions Tools/LyTestTools/ly_test_tools/o3de/editor_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -788,7 +788,10 @@ def _exec_editor_test(self, request: Request, workspace: AbstractWorkspace, edit
else:
test_result = Result.Fail.create(test_spec, output, editor_log_content)
# Save assets with errors and warnings
editor_utils.save_failed_asset_joblogs(workspace)
try:
editor_utils.save_failed_asset_joblogs(workspace)
except Exception as e: # Purposefully broad
logger.warning(e)
except WaitTimeoutError:
output = editor.get_output()
editor.kill()
Expand Down Expand Up @@ -893,7 +896,10 @@ def _exec_editor_multitest(self, request: Request, workspace: AbstractWorkspace,
results[test_spec_name] = Result.Crash.create(crashed_result.test_spec, output, return_code,
crash_error, crashed_result.editor_log)
# Save assets with errors and warnings
editor_utils.save_failed_asset_joblogs(workspace)
try:
editor_utils.save_failed_asset_joblogs(workspace)
except Exception as e: # Purposefully broad
logger.warning(e)
except WaitTimeoutError:
editor.kill()
output = editor.get_output()
Expand Down