From: Michael Goldish Subject: [KVM-AUTOTEST PATCH 4/7] KVM test: kvm_vm.py: fix typos in the code that compares -cdrom hashes Date: Thu, 5 Nov 2009 12:01:09 +0200 Message-ID: <1257415272-9423-4-git-send-email-mgoldish@redhat.com> References: <1257415272-9423-1-git-send-email-mgoldish@redhat.com> <1257415272-9423-2-git-send-email-mgoldish@redhat.com> <1257415272-9423-3-git-send-email-mgoldish@redhat.com> Cc: Michael Goldish To: autotest@test.kernel.org, kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:51833 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751165AbZKEKDk (ORCPT ); Thu, 5 Nov 2009 05:03:40 -0500 In-Reply-To: <1257415272-9423-3-git-send-email-mgoldish@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Replace md5sum_file() with hash_file() and 'md5sum' with 'sha1sum' where appropriate. Signed-off-by: Michael Goldish --- client/tests/kvm/kvm_vm.py | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/client/tests/kvm/kvm_vm.py b/client/tests/kvm/kvm_vm.py index ccf8fa9..5781dbc 100755 --- a/client/tests/kvm/kvm_vm.py +++ b/client/tests/kvm/kvm_vm.py @@ -347,14 +347,14 @@ class VM: elif params.get("md5sum"): logging.debug("Comparing expected MD5 sum with MD5 sum of ISO " "file...") - actual_hash = kvm_utils.md5sum_file(iso, method="md5") + actual_hash = kvm_utils.hash_file(iso, method="md5") expected_hash = params.get("md5sum") compare = True elif params.get("sha1sum"): logging.debug("Comparing expected SHA1 sum with SHA1 sum of " "ISO file...") - actual_hash = kvm_utils.md5sum_file(iso, method="sha1") - expected_hash = params.get("md5sum") + actual_hash = kvm_utils.hash_file(iso, method="sha1") + expected_hash = params.get("sha1sum") compare = True if compare: if actual_hash == expected_hash: -- 1.5.4.1