Skip to content

Commit

Permalink
Merge pull request #149 from CybercentreCanada/pass_no_test_result
Browse files Browse the repository at this point in the history
Pass tests when no tests results are present
  • Loading branch information
gdesmar authored Feb 13, 2025
2 parents b954911 + b86bec6 commit c467054
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions assemblyline_service_utilities/testing/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,9 @@ def _execute_sample(self, sample, save=False, save_files=False):
os.remove(file_path)

def result_list(self):
if not os.path.exists(self.result_folder):
return []

return [
f
for f in os.listdir(self.result_folder)
Expand Down

0 comments on commit c467054

Please sign in to comment.