From nobody Tue May 7 22:27:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=libvir-list-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1569339094; cv=none; d=zoho.com; s=zohoarc; b=mg83ZYOwcW8oF6Y2sFBLJWZ+lAGtqvJy+jHwnB3q1CM+k8a4HJCa/8dxnpqpYBhcWrKrXf0uDUeJnr9DJDwbZxEQuw5dah66qma+lzR3bgdNPoNiuuSY3wn/MthEabwhaL0APiWHsAz9LLfw/t/6rHNuKmTcy3y1JikMsXs1zxQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1569339094; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To:ARC-Authentication-Results; bh=UcdsF4kh8yMMStLmtSGx8qZVt9XUhIBdUpr+YeCRZ1o=; b=GuA3O90FGJJ0dHQvPDGMNm4AcytrBqf59ZURyUbC5sed3HHBRFLaydAtWE5xOnf2DD1V+/hKG7uMQpzjQIZtSQrV/wXU8wqFRmGJe8wbSHmf9+2MBRyeVPZZhqj1DQLzvdxVCyAh19uMZBEDkR3/lSYVjpZvL0q8v0KQFCa7j8g= ARC-Authentication-Results: i=1; mx.zoho.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1569339094513243.93753723250677; Tue, 24 Sep 2019 08:31:34 -0700 (PDT) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 2CBC87FD6C; Tue, 24 Sep 2019 15:31:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 93DB35C25B; Tue, 24 Sep 2019 15:31:31 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 07CC56B49E; Tue, 24 Sep 2019 15:31:29 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x8OFVSYG030321 for ; Tue, 24 Sep 2019 11:31:28 -0400 Received: by smtp.corp.redhat.com (Postfix) id EBF5A19C58; Tue, 24 Sep 2019 15:31:27 +0000 (UTC) Received: from ridgehead.redhat.com (ovpn-200-51.brq.redhat.com [10.40.200.51]) by smtp.corp.redhat.com (Postfix) with ESMTP id 2E194194B9; Tue, 24 Sep 2019 15:31:22 +0000 (UTC) From: Erik Skultety To: libvir-list@redhat.com Date: Tue, 24 Sep 2019 17:31:18 +0200 Message-Id: <08d1200d8a5b2de3aedbb08bc4b91ae6dafc97e1.1569339056.git.eskultet@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com Cc: Erik Skultety Subject: [libvirt] [libvirt-tck PATCH] domain: Relax the checks matching disk sizes X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.27]); Tue, 24 Sep 2019 15:31:32 +0000 (UTC) Content-Type: text/plain; charset="utf-8" There may be some preallocation going on depending on what host filesystem is in place which may mess up the numbers we expect mainly in allocation, so let's stick with exact matching of the capacity and relaxing the checks on allocation and physical size as commit 30beeb2e did. Signed-off-by: Erik Skultety Reviewed-by: Daniel P. Berrang=C3=A9 --- scripts/domain/121-block-info.t | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/domain/121-block-info.t b/scripts/domain/121-block-inf= o.t index bfff48c..d9d644e 100644 --- a/scripts/domain/121-block-info.t +++ b/scripts/domain/121-block-info.t @@ -98,8 +98,8 @@ ok_domain(sub { $dom =3D $conn->create_domain($xml) }, "C= reate domain"); $xml =3D $dom->get_xml_description(); =20 is($dom->get_block_info($dst2,0)->{capacity}, 1024*1024*50, "Get disk capa= city info"); -is($dom->get_block_info($dst2,0)->{allocation}, 1024*1024, "Get disk alloc= ation info"); -is($dom->get_block_info($dst2,0)->{physical}, 1024*1024*50, "Get disk phys= ical info"); +ok($dom->get_block_info($dst2,0)->{allocation} >=3D 1024*1024, "Get disk a= llocation info"); +ok($dom->get_block_info($dst2,0)->{physical} >=3D 1024*1024*50, "Get disk = physical info"); =20 =20 is($dom->get_block_info($dst,0)->{capacity}, 1024*1024*50, "Get disk capac= ity info"); --=20 2.20.1 -- libvir-list mailing list libvir-list@redhat.com https://www.redhat.com/mailman/listinfo/libvir-list