From db5c4d70fa81eae13f81502a6aecf8b42007d65c Mon Sep 17 00:00:00 2001 From: Kevin Wolf Date: Thu, 31 Jul 2014 16:03:48 -0500 Subject: [CHANGE 26/31] qemu-iotests. Backport 067 To: rhvirt-patches@redhat.com, jen@redhat.com RH-Author: Kevin Wolf Message-id: <1406822631-6570-27-git-send-email-kwolf@redhat.com> Patchwork-id: 60386 O-Subject: [RHEL-6.6 qemu-kvm PATCH v3 26/29] qemu-iotests. Backport 067 Bugzilla: 1122410 RH-Acked-by: Stefan Hajnoczi RH-Acked-by: Jeffrey Cody RH-Acked-by: Max Reitz The test needs the following adjustments for RHEL 6: * sleep 1 before piping QMP commands into qemu, otherwise qemu would crash (see BZ 1123904) * The drive_add HMP command is disabled, but instead we have a downstream-only QMP command __com.redhat_drive_add, so changed the test to use that * blockdev-add isn't supported, removed that part * Random harmless output changes Signed-off-by: Kevin Wolf Signed-off-by: jen --- tests/qemu-iotests/067 | 36 ++++------------------------------ tests/qemu-iotests/067.out | 49 ++++++++++------------------------------------ 2 files changed, 14 insertions(+), 71 deletions(-) diff --git a/tests/qemu-iotests/067 b/tests/qemu-iotests/067 index d025192..fd40578 100755 --- a/tests/qemu-iotests/067 +++ b/tests/qemu-iotests/067 @@ -39,7 +39,7 @@ _supported_os Linux function do_run_qemu() { echo Testing: "$@" - $QEMU -nographic -qmp stdio -serial none "$@" + (sleep 1; cat) | $QEMU -nographic -qmp stdio -serial none "$@" echo } @@ -82,41 +82,13 @@ run_qemu -drive file=$TEST_IMG,format=$IMGFMT,if=none,id=disk <