From nobody Tue Apr 15 14:48:20 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1582215466; cv=none; d=zohomail.com; s=zohoarc; b=QpXZWaV0Ef0VWzAi9kMqLrvVuGCY8TgHQU9QXEvB/fppkiOTekDO5teSWiD7ciNppmwFcZzil9u+WJ4FPqLG2+N7fTzDrq1fWh1AK64o6iCCjEcOWZWUtmDBuTgMIJbCNxkTvtVDT/9HjLh8U+0ESUDMZrXqDOSzDdjqGuPqxgw= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582215466; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=cxlR7vKbANcUPIfyDMHCSg6ZxhMzW1WqgzZTqXEeqG4=; b=TzM5sfroWQpUCxDfCAwpyG9iay9O7jqinU8hSkm2H+POn6UsIWh6Bvh6NHhiVc5+xEoMbTsxfPNDgRN3A6nIy8ErnaxoR89OpqVgxC4YN0TZCjBwBSuKy0+5GU2PqfJr4SYaqP3qYsRFGILt5SMT27KIu70vKtPV/jcZRumNuHs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1582215466201333.4391095908029; Thu, 20 Feb 2020 08:17:46 -0800 (PST) Received: from localhost ([::1]:45290 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4oWG-0001f4-Vk for importer@patchew.org; Thu, 20 Feb 2020 11:17:45 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:54976) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1j4oOj-0005im-E0 for qemu-devel@nongnu.org; Thu, 20 Feb 2020 11:09:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1j4oOi-0006Bb-Bm for qemu-devel@nongnu.org; Thu, 20 Feb 2020 11:09:57 -0500 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:48921 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1j4oOi-0006BQ-87 for qemu-devel@nongnu.org; Thu, 20 Feb 2020 11:09:56 -0500 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-372-h7Nv1wEEPNeyXLPm67D9cw-1; Thu, 20 Feb 2020 11:09:51 -0500 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id A52A71005512; Thu, 20 Feb 2020 16:09:50 +0000 (UTC) Received: from localhost (unknown [10.36.118.38]) by smtp.corp.redhat.com (Postfix) with ESMTPS id C71A291820; Thu, 20 Feb 2020 16:09:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1582214995; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=cxlR7vKbANcUPIfyDMHCSg6ZxhMzW1WqgzZTqXEeqG4=; b=LMgw5oHbQH5Ifnoo3S+Z+bH17L8tK8XpWG69aI7AN3rfWLcmJgwK7v2QOSz0jK+RC21J9e sTUyb8+uugu5w37Rx1bOpAk5xFU7BwChpYfBIPnQF2JMdH/A+ezlBRF7uYvsPkLQd8cxWW 9TSpP4pjaeY4WvjuIl+jia6RB0HYMCU= From: Max Reitz To: qemu-block@nongnu.org Subject: [PULL 09/18] iotests/279: Fix for non-qcow2 formats Date: Thu, 20 Feb 2020 17:07:01 +0100 Message-Id: <20200220160710.533297-10-mreitz@redhat.com> In-Reply-To: <20200220160710.533297-1-mreitz@redhat.com> References: <20200220160710.533297-1-mreitz@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-MC-Unique: h7Nv1wEEPNeyXLPm67D9cw-1 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 205.139.110.61 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Kevin Wolf , Peter Maydell , qemu-devel@nongnu.org, Max Reitz Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: fail (Header signature does not verify) Content-Type: text/plain; charset="utf-8" First, driver=3Dqcow2 will not work so well with non-qcow2 formats (and this test claims to support qcow, qed, and vmdk). Second, vmdk will always report the backing file format to be vmdk. Filter that out so the output looks like for all other formats. Third, the flat vmdk subformats do not support backing files, so they will not work with this test. Signed-off-by: Max Reitz Message-Id: <20191219144243.1763246-1-mreitz@redhat.com> Tested-by: Thomas Huth Signed-off-by: Max Reitz --- tests/qemu-iotests/279 | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/279 b/tests/qemu-iotests/279 index 6682376808..30d29b1cb2 100755 --- a/tests/qemu-iotests/279 +++ b/tests/qemu-iotests/279 @@ -38,6 +38,8 @@ trap "_cleanup; exit \$status" 0 1 2 3 15 _supported_fmt qcow qcow2 vmdk qed _supported_proto file _supported_os Linux +_unsupported_imgopts "subformat=3DmonolithicFlat" \ + "subformat=3DtwoGbMaxExtentFlat" \ =20 TEST_IMG=3D"$TEST_IMG.base" _make_test_img 64M TEST_IMG=3D"$TEST_IMG.mid" _make_test_img -b "$TEST_IMG.base" @@ -45,11 +47,12 @@ _make_test_img -b "$TEST_IMG.mid" =20 echo echo '=3D=3D qemu-img info --backing-chain =3D=3D' -_img_info --backing-chain | _filter_img_info +_img_info --backing-chain | _filter_img_info | grep -v 'backing file forma= t' =20 echo echo '=3D=3D qemu-img info --backing-chain --image-opts =3D=3D' -TEST_IMG=3D"driver=3Dqcow2,file.driver=3Dfile,file.filename=3D$TEST_IMG" _= img_info --backing-chain --image-opts | _filter_img_info +TEST_IMG=3D"driver=3D$IMGFMT,file.driver=3Dfile,file.filename=3D$TEST_IMG"= _img_info --backing-chain --image-opts \ + | _filter_img_info | grep -v 'backing file format' =20 # success, all done echo "*** done" --=20 2.24.1