This lets one use RHEL settings with CentOS images, or other similar hacks.
Signed-off-by: Paolo Bonzini <[email protected]> --- virttest/qemu_vm.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py index 890b771..55904d0 100644 --- a/virttest/qemu_vm.py +++ b/virttest/qemu_vm.py @@ -1824,7 +1824,9 @@ class VM(virt_vm.BaseVM): if not os.path.exists(iso): raise virt_vm.VMImageMissingError(iso) compare = False - if cdrom_params.get("md5sum_1m"): + if cdrom_params.get("skip_hash"): + logging.debug("Skipping hash comparison") + elif cdrom_params.get("md5sum_1m"): logging.debug("Comparing expected MD5 sum with MD5 sum of " "first MB of ISO file...") actual_hash = utils.hash_file(iso, 1048576, method="md5") -- 1.8.3.1 _______________________________________________ Virt-test-devel mailing list [email protected] https://www.redhat.com/mailman/listinfo/virt-test-devel
