From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48113) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmqsj-0002b4-IW for qemu-devel@nongnu.org; Tue, 20 May 2014 16:43:36 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wmqsd-0004rS-Cs for qemu-devel@nongnu.org; Tue, 20 May 2014 16:43:29 -0400 Received: from mx1.redhat.com ([209.132.183.28]:52196) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wmqsd-0004rO-5Y for qemu-devel@nongnu.org; Tue, 20 May 2014 16:43:23 -0400 Received: from int-mx01.intmail.prod.int.phx2.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s4KKhMpB032342 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 20 May 2014 16:43:22 -0400 From: Max Reitz Date: Tue, 20 May 2014 22:43:19 +0200 Message-Id: <1400618599-27889-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH] iotests: Use _img_info in test 089 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Stefan Hajnoczi , Max Reitz Currently, test 089 uses $QEMU_IMG info manually in order to obtain the according output. However, the iotests should generally use _img_info as this filters out more irrelevant information such as the host image size or format specific information. Therefore, test 089 should use _img_info as well. Signed-off-by: Max Reitz Reported-by: Kevin Wolf --- This is a follow-up patch for: [PATCH v3 4/4] iotests: Add test for the JSON protocol --- tests/qemu-iotests/089 | 3 +-- tests/qemu-iotests/089.out | 4 ---- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/tests/qemu-iotests/089 b/tests/qemu-iotests/089 index ef47601..dffc977 100755 --- a/tests/qemu-iotests/089 +++ b/tests/qemu-iotests/089 @@ -107,8 +107,7 @@ echo echo "=== Testing qemu-img info output ===" echo -$QEMU_IMG info "json:{\"driver\":\"qcow2\",\"file.filename\":\"$TEST_IMG\"}" \ - | _filter_testdir | _filter_imgfmt +TEST_IMG="json:{\"driver\":\"qcow2\",\"file.filename\":\"$TEST_IMG\"}" _img_info echo diff --git a/tests/qemu-iotests/089.out b/tests/qemu-iotests/089.out index d6cf783..4ca2f88 100644 --- a/tests/qemu-iotests/089.out +++ b/tests/qemu-iotests/089.out @@ -31,11 +31,7 @@ read failed: Input/output error image: TEST_DIR/t.IMGFMT file format: IMGFMT virtual size: 64M (67108864 bytes) -disk size: 324K cluster_size: 65536 -Format specific information: - compat: 1.1 - lazy refcounts: false === Testing option merging === -- 1.9.3