OSDN Git Service

tests: Enable the drive_del test also on s390x
authorThomas Huth <thuth@redhat.com>
Thu, 31 Aug 2017 14:40:08 +0000 (16:40 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 19 Sep 2017 16:21:32 +0000 (18:21 +0200)
commit2f84a92ec631f5907207990705a22afb9aad3eef
tree7aa72d5b476b59c580c1d41feb6b3824caaf3aef
parent6c86462220a1c7f5d673663d31d297627a2868a6
tests: Enable the drive_del test also on s390x

We can use the drive_del test on s390x, too, to check that adding and
deleting also works fine with the virtio-ccw bus. But we have to make
sure that we use the devices with the "-ccw" suffix instead of the
"-pci" suffix for the virtio-ccw transport on s390x. Introduce a helper
function called qvirtio_get_dev_type() that returns the correct string
for the current architecture.

Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1504190408-11143-1-git-send-email-thuth@redhat.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
tests/Makefile.include
tests/drive_del-test.c
tests/libqos/virtio.c
tests/libqos/virtio.h