network interface detection test fails on s390x linux chroot
Closed this issue · 2 comments
pravi commented
/sbin/ifconfig output on a linux s390x host chroot
uname -a
Linux zelenka 3.16.0-4-s390x #1 SMP Debian 3.16.36-1+deb8u1 (2016-09-03) s390x GNU/Linux
ext0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 80.245.147.40 netmask 255.255.255.255 broadcast 80.245.147.40
inet6 fe80::be:afff:fe00:1b prefixlen 64 scopeid 0x20<link>
ether 02:be:af:00:00:1b txqueuelen 1000 (Ethernet)
RX packets 936904 bytes 1078522312 (1.0 GiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 519691 bytes 219196282 (209.0 MiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
and vmstat cannot detect this interface and test fails
Full build log https://buildd.debian.org/status/fetch.php?pkg=ruby-vmstat&arch=s390x&ver=2.2.0-1&stamp=1472145491
threez commented
I think the problem is, that it is not categorized as ethernet device. But the test is checking for one Vmstat.ethernet_devices.size.should == 1
. Since the data comes from /proc/net/dev
, which doesn't have info regarding the type, type is detemined by the name. If you want the test to pass rename the interface to eth0
.
threez commented
Closed due to inactivity, reopen it if you still feel it's an issue.