Skip to content

Commit

Permalink
test ci
Browse files Browse the repository at this point in the history
  • Loading branch information
JackyWoo committed Sep 19, 2024
1 parent 251a57c commit b807e87
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/generate_test_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,12 @@ def generate_report(report_dir, report_title):

# Iterate over all files in the directory
for report_file in os.listdir(report_dir):
print("report_file:", report_file)
if report_file.endswith(('-none.xml', '-tsan.xml', '-msan.xml', '-asan.xml', '-ubsan.xml')):
sanitize_type = report_file.split('-')[-1].split('.')[0]
with open(os.path.join(report_dir, report_file), 'r') as file:
xml_data = file.read()
print("xml_data:", xml_data)
root = ET.fromstring(xml_data)

for testsuite in root.findall('testsuite'):
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/report.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@ def report(report_dir, report_type):
print("commit_id:", commit_id)

if report_type == 'unit':
title = f"### Unit Test Report for {commit_id}"
title = f"### Unit Test Report for Commit {commit_id}"
elif report_type == 'integration':
title = f"### Integration Test Report for {commit_id}"
title = f"### Integration Test Report for Commit {commit_id}"
else:
raise ValueError('Integration test report not available')

Expand Down

0 comments on commit b807e87

Please sign in to comment.