def copy_images(): error.base_context("Copy image from NFS after installation failure") image_copy_on_error = params.get("image_copy_on_error", "no") if image_copy_on_error == "yes": logging.info("Running image_copy to copy pristine image from NFS.") try: error.context("Quit qemu-kvm before copying guest image") vm.monitor.quit() except Exception, e: logging.warn(e) from virttest import utils_test error.context("Copy image from NFS Server") utils_test.run_image_copy(test, params, env)
def run(test, params, env): utils_test.run_image_copy(test, params, env)
def run_file_transfer(test, params, env): utils_test.run_image_copy(test, params, env)