tests/qtest: Only run fuzz-megasas-test if megasas device is available

This test fails when QEMU is built without the megasas device,
restrict it to its availability.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Philippe Mathieu-Daudé 2021-01-26 12:16:37 +01:00 committed by Paolo Bonzini
parent 6e31b3a5c3
commit c887d3339e
4 changed files with 53 additions and 26 deletions

View file

@ -17,7 +17,9 @@ slow_qtests = {
'test-hmp' : 120,
}
qtests_generic = [
qtests_generic = \
(config_all_devices.has_key('CONFIG_MEGASAS_SCSI_PCI') ? ['fuzz-megasas-test'] : []) + \
[
'cdrom-test',
'device-introspect-test',
'machine-none-test',