diff mbox series

[1/4] rteval: cyclictest.py: Fix the description in the xml report

Message ID 20240425180723.66499-1-jkacur@redhat.com
State New
Headers show
Series [1/4] rteval: cyclictest.py: Fix the description in the xml report | expand

Commit Message

John Kacur April 25, 2024, 6:07 p.m. UTC
If the __type is 'system' we should add the description to the xml
The output should be something like this

<system description="(12 cores) Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz">

Before this fix it was

<system description="">

Signed-off-by: John Kacur <jkacur@redhat.com>
---
 rteval/modules/measurement/cyclictest.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/rteval/modules/measurement/cyclictest.py b/rteval/modules/measurement/cyclictest.py
index 671426e13c4d..48b86a03cbfc 100644
--- a/rteval/modules/measurement/cyclictest.py
+++ b/rteval/modules/measurement/cyclictest.py
@@ -25,7 +25,7 @@  class RunData:
         self.__id = coreid
         self.__type = datatype
         self.__priority = int(priority)
-        self.__description = ''
+        self.description = ''
         # histogram of data
         self.__samples = {}
         self.__numsamples = 0
@@ -130,7 +130,7 @@  class RunData:
     def MakeReport(self):
         rep_n = libxml2.newNode(self.__type)
         if self.__type == 'system':
-            rep_n.newProp('description', self.__description)
+            rep_n.newProp('description', self.description)
         else:
             rep_n.newProp('id', str(self.__id))
             rep_n.newProp('priority', str(self.__priority))