misc: fix the summary issue after update board xml

The new board xml have add a "module" node under the "processors/die"
which has cause an issue when we run the summary, this patch  use "//"
to select all "cpu_id" under the "processors".

Tracked-On: #8385
Signed-off-by: Chenli Wei <chenli.wei@intel.com>
This commit is contained in:
Chenli Wei 2023-04-20 16:38:45 +08:00 committed by acrnsi-robot
parent de0a765010
commit c9e5fd1469

View File

@ -100,7 +100,7 @@ class GenerateRst:
# Get all physical CPU information from board.xml
def get_pcpu(self):
pcpu_list = list(map(int, self.board_etree.xpath("processors/die/core/thread/cpu_id/text()")))
pcpu_list = list(map(int, self.board_etree.xpath("processors//cpu_id/text()")))
return pcpu_list
def write_shared_cache(self):