Skip to content

Commit

Permalink
Merge branch 'fix/fix-test-report-generator' into 'master'
Browse files Browse the repository at this point in the history
ci: fix tests related to the build report generator

See merge request espressif/esp-idf!36910
  • Loading branch information
alekseiapa committed Feb 12, 2025
2 parents bbdf1e4 + 897db53 commit 0d6099e
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ def setup_patches(self) -> None:
'CI_JOB_ID': '1',
'JIRA_SERVER': 'https://jira.com',
})
self.yaml_dump_patcher = patch('dynamic_pipelines.report.yaml.dump')

self.MockGitlab = self.gitlab_patcher.start()
self.MockUploader = self.uploader_patcher.start()
self.test_cases_failure_rate = self.failure_rate_patcher.start()
self.env_patcher.start()
self.yaml_dump_patcher.start()

self.mock_project = MagicMock()
self.mock_mr = MagicMock()
Expand All @@ -54,6 +56,7 @@ def setup_patches(self) -> None:
self.addCleanup(self.uploader_patcher.stop)
self.addCleanup(self.failure_rate_patcher.stop)
self.addCleanup(self.env_patcher.stop)
self.addCleanup(self.yaml_dump_patcher.stop)
self.addCleanup(self.cleanup_files)

def cleanup_files(self) -> None:
Expand All @@ -64,6 +67,7 @@ def cleanup_files(self) -> None:
self.build_report_generator.failed_apps_report_file,
self.build_report_generator.built_apps_report_file,
self.build_report_generator.skipped_apps_report_file,
self.build_report_generator.apps_presigned_url_filepath,
]
for file_path in files_to_delete:
if os.path.exists(file_path):
Expand Down

0 comments on commit 0d6099e

Please sign in to comment.