diff options
author | Thomas Huth <thuth@redhat.com> | 2021-12-06 15:34:04 +0100 |
---|---|---|
committer | Hanna Reitz <hreitz@redhat.com> | 2022-02-01 10:51:39 +0100 |
commit | 0c83471bd75d329f4945e27dc1aa3a6cc2fda3bf (patch) | |
tree | 7aacfb7338ff80e32e451863fc835873e3855887 /tests/qemu-iotests | |
parent | 804b30d25f8d70dc2dea951883ea92235274a50c (diff) | |
download | qemu-0c83471bd75d329f4945e27dc1aa3a6cc2fda3bf.zip qemu-0c83471bd75d329f4945e27dc1aa3a6cc2fda3bf.tar.gz qemu-0c83471bd75d329f4945e27dc1aa3a6cc2fda3bf.tar.bz2 |
tests/qemu-iotests: Fix 051 for binaries without 'lsi53c895a'
The lsi53c895a SCSI adaptor might not be enabled in each and every
x86 QEMU binary, e.g. it's disabled in the RHEL/CentOS build.
Thus let's add a check to the 051 test so that it does not fail if
this device is not available.
Signed-off-by: Thomas Huth <thuth@redhat.com>
Message-Id: <20211206143404.247032-1-thuth@redhat.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
Diffstat (limited to 'tests/qemu-iotests')
-rwxr-xr-x | tests/qemu-iotests/051 | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051 index 1d2fa93..e9042a6 100755 --- a/tests/qemu-iotests/051 +++ b/tests/qemu-iotests/051 @@ -45,6 +45,10 @@ _supported_proto file _unsupported_imgopts 'refcount_bits=\([^1]\|.\([^6]\|$\)\)' data_file _require_drivers nbd +if [ "$QEMU_DEFAULT_MACHINE" = "pc" ]; then + _require_devices lsi53c895a +fi + do_run_qemu() { echo Testing: "$@" |