def METHOD_NAME(vm_name, target, timeout, test):
    """
    Make sure the block copy job finish.
    :param vm_name: Domain name
    :param target: Domain disk target dev
    :param timeout: Timeout value
    """
    job_time = 0
    while job_time < timeout:
        if utl.check_blockjob(vm_name, target, "progress", "100(.00)?"):
            logging.debug("Block job progress up to 100%.")
            break
        else:
            job_time += 2
            time.sleep(2)
    if job_time >= timeout:
        test.fail("Blockjob timeout in %s sec." % timeout)