From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48509) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJRdK-0006h0-2v for qemu-devel@nongnu.org; Thu, 05 Feb 2015 13:58:35 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJRdJ-0002CB-6t for qemu-devel@nongnu.org; Thu, 05 Feb 2015 13:58:34 -0500 Received: from mx1.redhat.com ([209.132.183.28]:57231) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJRdJ-0002Bz-0H for qemu-devel@nongnu.org; Thu, 05 Feb 2015 13:58:33 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t15IwWVB013083 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 5 Feb 2015 13:58:32 -0500 From: Max Reitz Date: Thu, 5 Feb 2015 13:58:13 -0500 Message-Id: <1423162705-32065-5-git-send-email-mreitz@redhat.com> In-Reply-To: <1423162705-32065-1-git-send-email-mreitz@redhat.com> References: <1423162705-32065-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH v4 04/16] iotests: Add test for driver=qcow2, format=qcow2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz 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 --- 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