aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorSamuel Tardieu <sam@rfc1149.net>2024-01-06 14:01:21 +0100
committerThomas Huth <thuth@redhat.com>2024-01-11 11:39:26 +0100
commitc98873ee4a0c2694aac976ab9affcf55da8b7e61 (patch)
tree026b2a00bf5877d8927de48c2989c3b382b29286 /tests
parentf51d3fb14d4125c00338e74eaa8bbe100f30e6f8 (diff)
downloadqemu-c98873ee4a0c2694aac976ab9affcf55da8b7e61.zip
qemu-c98873ee4a0c2694aac976ab9affcf55da8b7e61.tar.gz
qemu-c98873ee4a0c2694aac976ab9affcf55da8b7e61.tar.bz2
tests/qtest/virtio-ccw: Fix device presence checking
An apparent copy-paste error tests for the presence of the virtio-rng-ccw device in order to perform tests on the virtio-scsi-ccw device. Signed-off-by: Samuel Tardieu <sam@rfc1149.net> Message-ID: <20240106130121.1244993-1-sam@rfc1149.net> Fixes: 65331bf5d1 ("tests/qtest: Check for virtio-ccw devices before using them") Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/qtest/virtio-ccw-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/virtio-ccw-test.c b/tests/qtest/virtio-ccw-test.c
index f4f5858..7a5357c 100644
--- a/tests/qtest/virtio-ccw-test.c
+++ b/tests/qtest/virtio-ccw-test.c
@@ -85,7 +85,7 @@ int main(int argc, char **argv)
if (qtest_has_device("virtio-rng-ccw")) {
qtest_add_func("/virtio/rng/nop", virtio_rng_nop);
}
- if (qtest_has_device("virtio-rng-ccw")) {
+ if (qtest_has_device("virtio-scsi-ccw")) {
qtest_add_func("/virtio/scsi/nop", virtio_scsi_nop);
qtest_add_func("/virtio/scsi/hotplug", virtio_scsi_hotplug);
}