Skip to contentSkip to conversation

fix xm-test report issue

PATCH Applied Matsumoto 2 participants 2 messages Dec 5, 2005 – Dec 7, 2005

lore
Share & tools
lore

Matsumoto

author
#0 lore raw

PATCH 1/1 fix xm-test report issue

Hi,

I'm trying xm-test on IA64 and found xm-test report fails because IA64's /cpu/procinfo format is different from x86's.

IA64's /cpu/procinfo: (no "model_name","flag" field)

processor : 0
vendor : GenuineIntel
arch : IA-64
family : 32
model : 0
revision : 3
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1396.203998
itc MHz : 349.050999
BogoMIPS : 2785.01

Here's a small patch to fix the problem.

Best Regards,

Matsumoto

---

tools/xm-test/lib/XmTestReport/OSReport.py Mon Dec 5 09:45:43 2005 renamed from tools/xm-test/lib/XmTestReport/OSReport.py Thu Dec 1 17:24:33 2005 +5 -0
diff -r 9cca37fc1057 tools/xm-test/lib/XmTestReport/OSReport.py
@@ -102,6 +102,11 @@
         xen = self.__getXenInfo(xenValues)
         cpu = self.__getCpuInfo(cpuValues)
 
+        if cpu["model_name"] == "Unknown":   
+            cpuValues={"arch"  : "Unknown",
+                       "features": "Unknown"}
+            cpu=self.__getCpuInfo(cpuValues)
+
         for k in xen.keys():
             self.values[k] = xen[k]
             if xen[k] == "Unknown":
Applied
#1 lore raw
Quoted 21 lines · Matsumoto

Hi,

I'm trying xm-test on IA64 and found xm-test report fails because IA64's /cpu/procinfo format is different from x86's.

IA64's /cpu/procinfo: (no "model_name","flag" field)

processor : 0
vendor : GenuineIntel
arch : IA-64
family : 32
model : 0
revision : 3
archrev : 0
features : branchlong, 16-byte atomic ops
cpu number : 0
cpu regs : 4
cpu MHz : 1396.203998
itc MHz : 349.050999
BogoMIPS : 2785.01

Quoted 7 lines

Here's a small patch to fix the problem.

Best Regards,

Matsumoto

Applied, thank you.

Ewan.