fix xm-test report issue
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
@@ -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":
Ewan Mellor
AppliedQuoted 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
Signed-off-by Matsumoto <[email protected]>
Applied, thank you.
Ewan.