yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
9ae3a8
From b63711901e9e01f780e0b4be99bac6009e795b68 Mon Sep 17 00:00:00 2001
9ae3a8
From: Kevin Wolf <kwolf@redhat.com>
9ae3a8
Date: Wed, 10 Jul 2013 17:30:26 +0200
9ae3a8
Subject: [PATCH 29/38] qemu-iotests: Update 051 reference output
9ae3a8
9ae3a8
Message-id: <1378736903-18489-30-git-send-email-kwolf@redhat.com>
9ae3a8
Patchwork-id: 54216
9ae3a8
O-Subject: [RHEL-7.0 qemu-kvm PATCH 29/32] qemu-iotests: Update 051 reference output
9ae3a8
Bugzilla: 1005818
9ae3a8
RH-Acked-by: Fam Zheng <famz@redhat.com>
9ae3a8
RH-Acked-by: Max Reitz <mreitz@redhat.com>
9ae3a8
RH-Acked-by: Miroslav Rezanina <mrezanin@redhat.com>
9ae3a8
9ae3a8
Bugzilla: 1005818
9ae3a8
9ae3a8
This has been broken by commit bd5c51ee.
9ae3a8
9ae3a8
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
(cherry picked from commit 7a370406bdd13b1d46230d1cbca308d984d0dcae)
9ae3a8
9ae3a8
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
9ae3a8
---
9ae3a8
 tests/qemu-iotests/051.out       |  107 ++++++++++++++++++++++++++-----------
9ae3a8
 tests/qemu-iotests/common.filter |    2 +-
9ae3a8
 2 files changed, 76 insertions(+), 33 deletions(-)
9ae3a8
9ae3a8
diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out
9ae3a8
index 6b3d636..95ff245 100644
9ae3a8
--- a/tests/qemu-iotests/051.out
9ae3a8
+++ b/tests/qemu-iotests/051.out
9ae3a8
@@ -23,10 +23,12 @@ QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,unknown_opt=foo: could not
9ae3a8
 === Enable and disable lazy refcounting on the command line, plus some invalid values ===
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=off
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=
9ae3a8
 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=: Parameter 'lazy_refcounts' expects 'on' or 'off'
9ae3a8
@@ -49,112 +51,152 @@ QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on: Lazy ref
9ae3a8
 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=on: could not open disk image TEST_DIR/t.qcow2: Invalid argument
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,format=qcow2,lazy_refcounts=off
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 
9ae3a8
 === No medium ===
9ae3a8
 
9ae3a8
 Testing: -drive if=floppy
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive if=ide,media=cdrom
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive if=scsi,media=cdrom
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive if=ide
9ae3a8
-QEMU_PROG: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: Device initialization failed.
9ae3a8
 QEMU_PROG: Initialization of device ide-hd failed
9ae3a8
 
9ae3a8
 Testing: -drive if=virtio
9ae3a8
-QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -drive if=virtio: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: -drive if=virtio: Device initialization failed.
9ae3a8
+QEMU_PROG: -drive if=virtio: Device initialization failed.
9ae3a8
 QEMU_PROG: -drive if=virtio: Device 'virtio-blk-pci' could not be initialized
9ae3a8
 
9ae3a8
 Testing: -drive if=scsi
9ae3a8
-QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -drive if=scsi: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: -drive if=scsi: Device initialization failed.
9ae3a8
+QEMU_PROG: Device initialization failed.
9ae3a8
 QEMU_PROG: Initialization of device lsi53c895a failed
9ae3a8
 
9ae3a8
 Testing: -drive if=none,id=disk -device ide-cd,drive=disk
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-cd,drive=disk
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive if=none,id=disk -device ide-drive,drive=disk
9ae3a8
-QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -device ide-drive,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
9ae3a8
 QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
9ae3a8
 
9ae3a8
 Testing: -drive if=none,id=disk -device ide-hd,drive=disk
9ae3a8
-QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -device ide-hd,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
9ae3a8
 QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
9ae3a8
 
9ae3a8
 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-disk,drive=disk
9ae3a8
-QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -device scsi-disk,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: -device scsi-disk,drive=disk: Device initialization failed.
9ae3a8
 QEMU_PROG: -device scsi-disk,drive=disk: Device 'scsi-disk' could not be initialized
9ae3a8
 
9ae3a8
 Testing: -drive if=none,id=disk -device lsi53c895a -device scsi-hd,drive=disk
9ae3a8
-QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -device scsi-hd,drive=disk: Device needs media, but drive is empty
9ae3a8
+QEMU_PROG: -device scsi-hd,drive=disk: Device initialization failed.
9ae3a8
 QEMU_PROG: -device scsi-hd,drive=disk: Device 'scsi-hd' could not be initialized
9ae3a8
 
9ae3a8
 
9ae3a8
 === Read-only ===
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=floppy,readonly=on
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,media=cdrom,readonly=on
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,media=cdrom,readonly=on
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on
9ae3a8
 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,if=ide,readonly=on: readonly not supported by this bus type
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=virtio,readonly=on
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=scsi,readonly=on
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-cd,drive=disk
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-cd,drive=disk
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-drive,drive=disk
9ae3a8
-QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -device ide-drive,drive=disk: Can't use a read-only drive
9ae3a8
+QEMU_PROG: -device ide-drive,drive=disk: Device initialization failed.
9ae3a8
 QEMU_PROG: -device ide-drive,drive=disk: Device 'ide-drive' could not be initialized
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device ide-hd,drive=disk
9ae3a8
-QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) QEMU_PROG: -device ide-hd,drive=disk: Can't use a read-only drive
9ae3a8
+QEMU_PROG: -device ide-hd,drive=disk: Device initialization failed.
9ae3a8
 QEMU_PROG: -device ide-hd,drive=disk: Device 'ide-hd' could not be initialized
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-disk,drive=disk
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,if=none,id=disk,readonly=on -device lsi53c895a -device scsi-hd,drive=disk
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 
9ae3a8
 === Cache modes ===
9ae3a8
 
9ae3a8
 Testing: -drive media=cdrom,cache=none
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive media=cdrom,cache=directsync
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive media=cdrom,cache=writeback
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive media=cdrom,cache=writethrough
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive media=cdrom,cache=unsafe
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive media=cdrom,cache=invalid_value
9ae3a8
 QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
9ae3a8
@@ -163,7 +205,8 @@ QEMU_PROG: -drive media=cdrom,cache=invalid_value: invalid cache option
9ae3a8
 === Specifying the protocol layer ===
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=file
9ae3a8
-q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
+QEMU 1.5.50 monitor - type 'help' for more information
9ae3a8
+(qemu) q?[K?[Dqu?[K?[D?[Dqui?[K?[D?[D?[Dquit?[K
9ae3a8
 
9ae3a8
 Testing: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2
9ae3a8
 QEMU_PROG: -drive file=TEST_DIR/t.qcow2,file.driver=qcow2: Can't use 'qcow2' as a block driver for the protocol level
9ae3a8
diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.filter
9ae3a8
index dcf6391..9dbcae8 100644
9ae3a8
--- a/tests/qemu-iotests/common.filter
9ae3a8
+++ b/tests/qemu-iotests/common.filter
9ae3a8
@@ -155,7 +155,7 @@ _filter_qemu_io()
9ae3a8
 # replace occurrences of QEMU_PROG with "qemu"
9ae3a8
 _filter_qemu()
9ae3a8
 {
9ae3a8
-    sed -e "s#^$(basename $QEMU_PROG):#QEMU_PROG:#"
9ae3a8
+    sed -e "s#\\(^\\|(qemu) \\)$(basename $QEMU_PROG):#\1QEMU_PROG:#"
9ae3a8
 }
9ae3a8
 
9ae3a8
 # make sure this script returns success
9ae3a8
-- 
9ae3a8
1.7.1
9ae3a8