Skip to content

Commit

Permalink
misc: fail to save config_summary.rst while changing board.xml
Browse files Browse the repository at this point in the history
This patch is to fix the bug which will report while changing board.xml.

The former coder added data into the list without removing old ones,
and the file config_summary.rst won't be dropped before generating a new one.

I removed the old data when I want to close the file config_summary.rst.

I tested by change board.xml with different pcpus and make confirmation
the result is correct now.

Tracked-On: projectacrn#8718
Signed-off-by: dongpingx <[email protected]>
  • Loading branch information
dongpingx committed Aug 30, 2024
1 parent 0198edf commit 1a8d2a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion misc/config_tools/scenario_config/config_summary.py
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,9 @@ def get_fixed_io_address_table(self, vm_node):

# Close the Rst file after all information is written.
def close_file(self):
self.file.close()
if self.file:
self.service_vm_used_pcpu_list.clear()
self.file.close()


def main(board_xml, scenario_xml, config_summary):
Expand Down

0 comments on commit 1a8d2a9

Please sign in to comment.