mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-22 07:03:38 +00:00
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:
@@ -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);
|
||||
|
||||
@@ -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'."
|
||||
|
||||
@@ -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'."
|
||||
|
||||
Reference in New Issue
Block a user