def wait_job(process, cmd_str):
    """Wait process finish its job
    """
    retcode = process.wait()
    mesg = 'Fail with retcode(%s): %s' % (retcode, cmd_str)
    if retcode != 0:
        raise RuntimeError(mesg)
