KVM test: fix md5sum verification of ISO files
commit8367b01c59a7c5f9b72de34d345be203e552f808
authorlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Tue, 28 Dec 2010 20:20:05 +0000 (28 20:20 +0000)
committerlmr <lmr@592f7852-d20e-0410-864c-8624ca9c26a4>
Tue, 28 Dec 2010 20:20:05 +0000 (28 20:20 +0000)
tree84b225380179dd66aa26d61297d1d163bea12591
parenta1b511e2eb0e3cef977d140cb09cb51a51e16ad0
KVM test: fix md5sum verification of ISO files

Currently only the 'cdrom' parameter is checked, but now that multiple cdroms
can be defined, get_sub_dict() should be used.

This patch also makes sure that 'md5sum' and 'sha1sum' are only set for the
same cdrom whose 'cdrom' parameter is set (e.g. 'md5sum_cd1 = ...' instead of
'md5sum = ...').  Otherwise adding a 2nd cdrom such as winutils.iso will result
in a hash mismatch.

Signed-off-by: Michael Goldish <mgoldish@redhat.com>
git-svn-id: svn://test.kernel.org/autotest/trunk@5025 592f7852-d20e-0410-864c-8624ca9c26a4
client/tests/kvm/kvm_vm.py
client/tests/kvm/tests_base.cfg.sample