Commit 9da126fc authored by Max Reitz's avatar Max Reitz
Browse files

iotests: Add -display none to the qemu options



Without this argument, qemu will print an angry message about not being
able to connect to a display server if $DISPLAY is not set.  For me,
that breaks iotests.supported_formats() because it thus only sees
["Could", "not", "connect"] as the supported formats.

Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@redhat.com>
Message-id: 20190819201851.24418-2-mreitz@redhat.com
Reviewed-by: default avatarThomas Huth <thuth@redhat.com>
Signed-off-by: default avatarMax Reitz <mreitz@redhat.com>
parent 236094c7
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -581,13 +581,13 @@ export QEMU_PROG="$(type -p "$QEMU_PROG")"

case "$QEMU_PROG" in
    *qemu-system-arm|*qemu-system-aarch64)
        export QEMU_OPTIONS="-nodefaults -machine virt,accel=qtest"
        export QEMU_OPTIONS="-nodefaults -display none -machine virt,accel=qtest"
        ;;
    *qemu-system-tricore)
        export QEMU_OPTIONS="-nodefaults -machine tricore_testboard,accel=qtest"
        export QEMU_OPTIONS="-nodefaults -display none -machine tricore_testboard,accel=qtest"
        ;;
    *)
        export QEMU_OPTIONS="-nodefaults -machine accel=qtest"
        export QEMU_OPTIONS="-nodefaults -display none -machine accel=qtest"
        ;;
esac