def METHOD_NAME(args):
    with open(args.json) as json_file:
        cb = json.load(json_file)
    if args.token and cb['token'] != args.token:
        print("Token mismatch")
        sys.exit(1)
    if is_infra_error(cb):
        print("Infrastructure error")
        ret = BISECT_SKIP
    elif args.test_case:
        ret = handle_test(cb, args.test_case, args.verbose)
    else:
        ret = handle_boot(cb, args.verbose)
    sys.exit(ret)