[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 4/6] tests/acceptance: verify s390x device detection
From: |
Cornelia Huck |
Subject: |
[PULL 4/6] tests/acceptance: verify s390x device detection |
Date: |
Fri, 11 Dec 2020 13:26:56 +0100 |
The kernel/initrd combination does not provide the virtio-net
driver; therefore, simply check whether the presented device type
is indeed virtio-net for the two virtio-net-{ccw,pci} devices.
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
[re-formatted overlong lines]
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Wainer dos Santos Moschetta <wainersm@redhat.com>
Message-Id: <20201130180216.15366-3-cohuck@redhat.com>
---
tests/acceptance/machine_s390_ccw_virtio.py | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/acceptance/machine_s390_ccw_virtio.py
b/tests/acceptance/machine_s390_ccw_virtio.py
index c6812719728a..ebea1b755c81 100644
--- a/tests/acceptance/machine_s390_ccw_virtio.py
+++ b/tests/acceptance/machine_s390_ccw_virtio.py
@@ -82,3 +82,14 @@ class S390CCWVirtioMachine(Test):
exec_command_and_wait_for_pattern(self,
'cat /sys/bus/ccw/devices/0.3.1234/virtio?/features',
virtio_rng_features)
+ # verify that we indeed have virtio-net devices (without having the
+ # virtio-net driver handy)
+ exec_command_and_wait_for_pattern(self,
+ 'cat /sys/bus/ccw/devices/0.1.1111/cutype',
+ '3832/01')
+ exec_command_and_wait_for_pattern(self,
+ 'cat /sys/bus/pci/devices/0005\:00\:00.0/subsystem_vendor',
+ '0x1af4')
+ exec_command_and_wait_for_pattern(self,
+ 'cat /sys/bus/pci/devices/0005\:00\:00.0/subsystem_device',
+ '0x0001')
--
2.26.2
- [PULL 0/6] s390x update, Cornelia Huck, 2020/12/11
- [PULL 1/6] hw/watchdog/wdt_diag288: Remove unnecessary includes, Cornelia Huck, 2020/12/11
- [PULL 4/6] tests/acceptance: verify s390x device detection,
Cornelia Huck <=
- [PULL 3/6] tests/acceptance: test virtio-ccw revision handling, Cornelia Huck, 2020/12/11
- [PULL 2/6] tests/acceptance: add a test for devices on s390x, Cornelia Huck, 2020/12/11
- [PULL 5/6] tests/acceptance: test s390x zpci fid propagation, Cornelia Huck, 2020/12/11
- [PULL 6/6] s390x/cpu: Use timer_free() in the finalize function to avoid memleaks, Cornelia Huck, 2020/12/11
- Re: [PULL 0/6] s390x update, Peter Maydell, 2020/12/11