[libvirt] [PATCH 3/3] aarch64: Fix sysinfo test.

Richard W.M. Jones rjones at redhat.com
Wed Jan 1 15:49:55 UTC 2014


From: "Richard W.M. Jones" <rjones at redhat.com>

On AArch64 the kernel prints one "processor" (lower case 'p') line per
core.  As this was missing from the test data, virSysinfo was not
parsing any processors at all.

Fix the test data so the test now passes.
---
 tests/sysinfodata/aarch64cpuinfo.data   | 1 +
 tests/sysinfodata/aarch64sysinfo.expect | 4 ----
 2 files changed, 1 insertion(+), 4 deletions(-)

diff --git a/tests/sysinfodata/aarch64cpuinfo.data b/tests/sysinfodata/aarch64cpuinfo.data
index 0d63139..fbab543 100644
--- a/tests/sysinfodata/aarch64cpuinfo.data
+++ b/tests/sysinfodata/aarch64cpuinfo.data
@@ -1,4 +1,5 @@
 Processor	: AArch64 Processor rev 0 (aarch64)
+processor	: 0
 BogoMIPS	: 100.00
 
 Features	: fp asimd
diff --git a/tests/sysinfodata/aarch64sysinfo.expect b/tests/sysinfodata/aarch64sysinfo.expect
index 518434d..2cb8932 100644
--- a/tests/sysinfodata/aarch64sysinfo.expect
+++ b/tests/sysinfodata/aarch64sysinfo.expect
@@ -1,10 +1,6 @@
 <sysinfo type='smbios'>
   <processor>
     <entry name='socket_destination'>0</entry>
-    <entry name='type'>AArch64 Processor rev 0 (aarch64) </entry>
-  </processor>
-  <processor>
-    <entry name='socket_destination'>1</entry>
     <entry name='type'>AArch64 Processor rev 0 (aarch64)</entry>
   </processor>
 </sysinfo>
-- 
1.8.3.1




More information about the libvir-list mailing list