From mboxrd@z Thu Jan 1 00:00:00 1970 From: Uri Lublin Subject: Re: [Autotest] [PATCH 3/3] KVM test: Extend VM.create() method to support SHA1 check Date: Thu, 22 Oct 2009 12:58:44 +0200 Message-ID: <4AE03AE4.5060709@redhat.com> References: <1256160707-4333-1-git-send-email-lmr@redhat.com> <1256160707-4333-2-git-send-email-lmr@redhat.com> <1256160707-4333-3-git-send-email-lmr@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: kvm@vger.kernel.org To: Lucas Meneghel Rodrigues Return-path: Received: from mx1.redhat.com ([209.132.183.28]:28275 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754976AbZJVK67 (ORCPT ); Thu, 22 Oct 2009 06:58:59 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id n9MAx4C0025409 for ; Thu, 22 Oct 2009 06:59:04 -0400 In-Reply-To: <1256160707-4333-3-git-send-email-lmr@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On 10/21/2009 11:31 PM, Lucas Meneghel Rodrigues wrote: > --- a/client/tests/kvm/kvm_vm.py > +++ b/client/tests/kvm/kvm_vm.py > @@ -339,20 +339,27 @@ class VM: > + elif params.get("sha1sum"): > + logging.debug("Comparing expected SHA1 sum with SHA1 sum of " > + "ISO file...") > + actual_hash = kvm_utils.md5sum_file(iso) > + expected_hash = params.get("md5sum") typo: replace "md5" with "sha" for those last 2 lines