def METHOD_NAME(self, pav_cfg, args):
    """Wait for the requested tests to complete."""
    # get start time
    start_time = time.time()
    tests = cmd_utils.get_tests_by_id(pav_cfg, args.tests, self.errfile)
    # determine timeout time, if there is one
    end_time = None
    if args.timeout is not None:
        end_time = start_time + float(args.timeout)
    self.wait(pav_cfg, tests, end_time, args.out_mode)
    return 0