arm: Error if iface=ide and skip tests that use iface=ide.

ARM doesn't support IDE.  (Well, that's not entirely true as I found a
reference to one extremely obscure ARM board that had IDE disks, but
qemu-system-arm doesn't appear to support them).
This commit is contained in:
Richard W.M. Jones
2013-09-08 16:21:17 +01:00
parent 25cce50a2b
commit 9d97b86ee8
3 changed files with 18 additions and 0 deletions

View File

@@ -419,6 +419,12 @@ launch_direct (guestfs_h *g, void *datav, const char *arg)
*/
if (drv->iface && STREQ (drv->iface, "virtio")) /* virtio-blk */
goto virtio_blk;
#ifdef __arm__
else if (drv->iface && STREQ (drv->iface, "ide")) {
error (g, "'ide' interface does not work on ARM");
goto cleanup0;
}
#endif
else if (drv->iface) {
ADD_CMDLINE ("-drive");
ADD_CMDLINE_PRINTF ("%s,if=%s", param, drv->iface);

View File

@@ -28,6 +28,12 @@ if [ -n "$SKIP_TEST_RHBZ690819_SH" ]; then
exit 77
fi
arch="$(uname -m)"
if [[ "$arch" =~ ^arm ]]; then
echo "$0: test skipped because ARM does not support 'ide' interface."
exit 77
fi
backend="$(../../fish/guestfish get-backend)"
if [[ "$backend" =~ ^libvirt ]]; then
echo "$0: test skipped because backend ($backend) is 'libvirt'."

View File

@@ -28,6 +28,12 @@ if [ -n "$SKIP_TEST_RHBZ690819_SH" ]; then
exit 77
fi
arch="$(uname -m)"
if [[ "$arch" =~ ^arm ]]; then
echo "$0: test skipped because ARM does not support 'ide' interface."
exit 77
fi
backend="$(../../fish/guestfish get-backend)"
if [[ "$backend" =~ ^libvirt ]]; then
echo "$0: test skipped because backend ($backend) is 'libvirt'."