Patchworkβ [KVM-AUTOTEST,4/7] KVM test: kvm_vm.py: fix typos in the code that compares -cdrom hashes

login
register
about
Submitter Michael Goldish
Date 2009-11-05 10:01:09
Message ID <1257415272-9423-4-git-send-email-mgoldish@redhat.com>
Download mbox | patch
Permalink /patch/57864/
State New
Headers show

Comments

Michael Goldish - 2009-11-05 10:01:09
Replace md5sum_file() with hash_file() and 'md5sum' with 'sha1sum' where
appropriate.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
---
 client/tests/kvm/kvm_vm.py |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

Patch

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: