Found actual issue where the logs were being routed to the artifact folder
Signed-off-by: evanchia <evanchia@amazon.com>
This commit is contained in:
@@ -61,6 +61,8 @@ class TestEditorTestUtils(unittest.TestCase):
|
||||
|
||||
@mock.patch('os.listdir')
|
||||
@mock.patch('ly_test_tools.o3de.editor_test_utils.retrieve_log_path')
|
||||
@mock.patch('os.path.join', mock.MagicMock())
|
||||
@mock.patch('os.path.basename', mock.MagicMock())
|
||||
@mock.patch('os.path.isfile', mock.MagicMock())
|
||||
@mock.patch('ly_test_tools.environment.waiter.wait_for', mock.MagicMock())
|
||||
def test_RetrieveCrashOutput_CrashLogExists_ReturnsLogInfo(self, mock_retrieve_log_path, mock_listdir):
|
||||
@@ -79,6 +81,7 @@ class TestEditorTestUtils(unittest.TestCase):
|
||||
def test_RetrieveCrashOutput_CrashLogNotExists_ReturnsError(self, mock_retrieve_log_path, mock_listdir):
|
||||
mock_retrieve_log_path.return_value = 'mock_log_path'
|
||||
mock_workspace = mock.MagicMock()
|
||||
mock_workspace.paths.crash_log.return_value = 'mock_file.log'
|
||||
error_message = "No crash log available"
|
||||
mock_listdir.return_value = ['mock_file.log']
|
||||
|
||||
@@ -91,7 +94,7 @@ class TestEditorTestUtils(unittest.TestCase):
|
||||
@mock.patch('os.path.exists')
|
||||
def test_CycleCrashReport_DmpExists_NamedCorrectly(self, mock_exists, mock_retrieve_log_path, mock_strftime,
|
||||
mock_rename):
|
||||
mock_exists.side_effect = [False, True]
|
||||
mock_exists.side_effect = [False, False, True]
|
||||
mock_retrieve_log_path.return_value = 'mock_log_path'
|
||||
mock_workspace = mock.MagicMock()
|
||||
mock_strftime.return_value = 'mock_strftime'
|
||||
@@ -107,7 +110,7 @@ class TestEditorTestUtils(unittest.TestCase):
|
||||
@mock.patch('os.path.exists')
|
||||
def test_CycleCrashReport_LogExists_NamedCorrectly(self, mock_exists, mock_retrieve_log_path, mock_strftime,
|
||||
mock_rename):
|
||||
mock_exists.side_effect = [True, False]
|
||||
mock_exists.side_effect = [False, True, False]
|
||||
mock_retrieve_log_path.return_value = 'mock_log_path'
|
||||
mock_workspace = mock.MagicMock()
|
||||
mock_strftime.return_value = 'mock_strftime'
|
||||
|
||||
Reference in New Issue
Block a user