Skip to content

Commit

Permalink
fix/test_upload_script (#439)
Browse files Browse the repository at this point in the history
* add gha info to newly generated xml

* save after adding fields
  • Loading branch information
ykim-1 authored Dec 7, 2023
1 parent 532f589 commit f93d6ba
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion scripts/test_report_upload_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,14 @@ def change_xml_report_to_tod_acceptable_version(file_name):
# Save the new XML to a file
try:
new_tree = ET.ElementTree(new_testsuites)
new_tree.write(file_name, encoding="UTF-8", xml_declaration=True)
new_root = new_tree.getroot()
new_root.append(root.get('branch_name'))
new_root.append(root.get('gha_run_id'))
new_root.append(root.get('gha_run_number'))
new_root.append(root.get('release_tag'))

new_tree.write(file_name, encoding="UTF-8", xml_declaration=True)

print("XML content successfully over-written to " + file_name)

except Exception as e:
Expand Down

0 comments on commit f93d6ba

Please sign in to comment.