32 repo_name = api.properties[
'repository'].split(
'/')[-1]
33 if repo_name.endswith(
'.git'):
34 repo_name = repo_name[:-len(
'.git')]
35 repo_root = api.path[
'start_dir'].join(repo_name)
36 infra_tests = repo_root.join(
'infra',
'bots',
'infra_tests.py')
40 env.update(api.infra.go_env)
41 for k, v
in api.vars.default_env.items():
46 env[k] = env[k] % {k: v}
51 if repo_name !=
'skia':
52 git_init(api, api.path[
'start_dir'].join(
'skia'), env)
54 with api.context(cwd=repo_root, env=env):
60 api.step(
'infra_tests', cmd=[
'python3',
'-u', infra_tests])
62 except api.step.StepFailure
as e: