Richard W.M. Jones
2017-May-17 11:46 UTC
[Libguestfs] [PATCH] s390x: tests: 9p: Use virtio-9p-ccw as the 9p device in this test.
--- tests/9p/test-9p.sh | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/tests/9p/test-9p.sh b/tests/9p/test-9p.sh index 748603037..b4bdbe56e 100755 --- a/tests/9p/test-9p.sh +++ b/tests/9p/test-9p.sh @@ -25,16 +25,18 @@ $TEST_FUNCTIONS skip_if_skipped skip_unless_backend direct -# The name of the virtio-9p device is different on virtio-pci and virtio-mmio. -arch="$(uname -m)" -if [[ "$arch" =~ ^arm ]]; then - virtio_mmio=yes -fi -if [ "$virtio_mmio" != "yes" ]; then - virtio_9p=virtio-9p-pci -else - virtio_9p=virtio-9p-device -fi +# The name of the virtio-9p device is different on some architectures. +case "$(uname -m)" in + arm*) + virtio_9p=virtio-9p-device + ;; + s390*) + virtio_9p=virtio-9p-ccw + ;; + *) + virtio_9p=virtio-9p-pci + ;; +esac rm -f test-9p.img test-9p.out -- 2.13.0
Possibly Parallel Threads
- [PATCH 2/2] tests: fix podcheck tests
- [PATCH] tests: Replace test-max-disks with several tests.
- [PATCH] v2v: Add extra tests for malformed OVA files.
- [PATCH] v2v: -o rhv-upload: skip test-v2v-o-rhv-upload.sh w/o nbdkit
- [PATCH 6/6] p2v: tests: use a local blank-part disk image