[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 53/65] iotests: Add test for driver=qcow2, format=qco
From: |
Stefan Hajnoczi |
Subject: |
[Qemu-devel] [PULL 53/65] iotests: Add test for driver=qcow2, format=qcow2 |
Date: |
Fri, 13 Feb 2015 16:24:49 +0000 |
From: Max Reitz <address@hidden>
While specifying a different driver and format is obviously invalid,
specifying the same driver once through driver and once through format
is invalid as well. Add a test for it.
Signed-off-by: Max Reitz <address@hidden>
Reviewed-by: Eric Blake <address@hidden>
Message-id: address@hidden
Signed-off-by: Stefan Hajnoczi <address@hidden>
---
tests/qemu-iotests/051 | 1 +
tests/qemu-iotests/051.out | 3 +++
2 files changed, 4 insertions(+)
diff --git a/tests/qemu-iotests/051 b/tests/qemu-iotests/051
index 11c858f..27138a2 100755
--- a/tests/qemu-iotests/051
+++ b/tests/qemu-iotests/051
@@ -93,6 +93,7 @@ echo
run_qemu -drive file="$TEST_IMG",format=foo
run_qemu -drive file="$TEST_IMG",driver=foo
run_qemu -drive file="$TEST_IMG",driver=raw,format=qcow2
+run_qemu -drive file="$TEST_IMG",driver=qcow2,format=qcow2
echo
echo === Overriding backing file ===
diff --git a/tests/qemu-iotests/051.out b/tests/qemu-iotests/051.out
index 9596e20..e727dc1 100644
--- a/tests/qemu-iotests/051.out
+++ b/tests/qemu-iotests/051.out
@@ -43,6 +43,9 @@ QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=foo: could not
open disk image TE
Testing: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2
QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=raw,format=qcow2: could not
open disk image TEST_DIR/t.qcow2: Driver specified twice
+Testing: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2
+QEMU_PROG: -drive file=TEST_DIR/t.qcow2,driver=qcow2,format=qcow2: could not
open disk image TEST_DIR/t.qcow2: Driver specified twice
+
=== Overriding backing file ===
--
2.1.0
- [Qemu-devel] [PULL 42/65] qtest: Fix deadloop by running main loop AIO context's timers, (continued)
- [Qemu-devel] [PULL 42/65] qtest: Fix deadloop by running main loop AIO context's timers, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 46/65] qemu-iotests: Allow caller to disable underscore convertion for qmp, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 48/65] qemu-img: Fix qemu-img convert -n, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 50/65] block: Lift some BDS functions to the BlockBackend, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 49/65] iotests: Add test for qemu-img convert to NBD, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 51/65] block: Add blk_new_open(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 47/65] qemu-iotests: Add 093 for IO throttling, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 52/65] block: Add Error parameter to bdrv_find_protocol(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 56/65] qemu-img: Use blk_new_open() in img_open(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 57/65] qemu-img: Use blk_new_open() in img_rebase(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 53/65] iotests: Add test for driver=qcow2, format=qcow2,
Stefan Hajnoczi <=
- [Qemu-devel] [PULL 60/65] qemu-io: Use blk_new_open() in openfile(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 58/65] qemu-img: Use BlockBackend as far as possible, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 55/65] block/xen: Use blk_new_open() in blk_connect(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 59/65] qemu-nbd: Use blk_new_open() in main(), Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 63/65] block: Clamp BlockBackend requests, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 64/65] block: Remove "growable" from BDS, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 62/65] qemu-io: Use BlockBackend, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 65/65] block: Keep bdrv_check*_request()'s return value, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 61/65] qemu-io: Remove "growable" option, Stefan Hajnoczi, 2015/02/13
- [Qemu-devel] [PULL 18/65] libqos/ahci: create libqos/ahci.c, Stefan Hajnoczi, 2015/02/13