]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
lscpu: update s390-lpar-drawer testcase
authorHeiko Carstens <heiko.carstens@de.ibm.com>
Wed, 22 Jun 2016 07:26:00 +0000 (09:26 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 24 Jun 2016 08:54:09 +0000 (10:54 +0200)
I noticed that the "cpu" line within /proc/cpuinfo has a different
meaning on powerpc and sparc than on s390.

On s390 it represents the cpu number while on powerpc and sparc it
represent the model name. Given that the s390 kernel patch which adds
the "cpu" line to /proc/cpuinfo hasn't been merged into the kernel
yet, I changed that line to "cpu number" to avoid the unnecessary
conflict.

Therefore this patch updates the testcase, which mainly changes the
contents of /proc/cpuinfo.

Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
tests/expected/lscpu/lscpu-s390-lpar-drawer
tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz

index 75ee33ff770491113b62aa3099d6afe1e73aa781..2309f1db444bd2f13a3f5fe9699be756618bb985 100644 (file)
@@ -9,7 +9,6 @@ Drawer(s):             4
 NUMA node(s):          1
 Vendor ID:             IBM/S390
 Machine type:          2964
-Model name:            0
 CPU dynamic MHz:       5000
 CPU static MHz:        5000
 BogoMIPS:              20325.00
@@ -32,7 +31,7 @@ Flags:                 esan3 zarch stfle msa ldisp eimm dfp edat etf3eh highgprs
 # CPU,Core,Socket,Node,,L1d,L1i,L2d,L2i
 0,0,0,0,,0,0,0,0
 1,1,0,0,,1,1,1,1
-2,2,0,0,,2,2,2,2
+2,2,1,0,,2,2,2,2
 3,3,1,0,,3,3,3,3
 4,4,1,0,,4,4,4,4
 5,5,1,0,,5,5,5,5
index 3386ded68169a66aba5f54885ad84606728250c7..ca1bc96eb841e070e54ee065ec2e60b6fe397b80 100644 (file)
Binary files a/tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz and b/tests/ts/lscpu/dumps/s390-lpar-drawer.tar.gz differ