From: Matsumoto Subject: [Patch] fix xm-test report issue Date: Mon, 05 Dec 2005 12:46:30 +0900 Message-ID: <20051205124420.AB5D.N_MATUMOTO@soft.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org 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 Signed-off-by: Matsumoto --- diff -r 9cca37fc1057 tools/xm-test/lib/XmTestReport/OSReport.py --- a/tools/xm-test/lib/XmTestReport/OSReport.py Thu Dec 1 17:24:33 2005 +++ b/tools/xm-test/lib/XmTestReport/OSReport.py Mon Dec 5 09:45:43 2005 @@ -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":