diff options
author | Eric Boren <borenet@google.com> | 2017-06-14 15:25:31 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-06-15 13:10:59 +0000 |
commit | 7e3a36433786a3041c0284d62128f086f06151f3 (patch) | |
tree | 316424ca6103e5166318dce8458fe8ac9d24bf07 /infra/bots/recipes | |
parent | 277f7f240f127772f7aa158baefc503dca05cf08 (diff) |
Fixes for internal repo infra tests
Bug: skia:6763
Change-Id: I51522693ec8b81ff3b7d4349808d0e6493c5dd5b
Reviewed-on: https://skia-review.googlesource.com/19843
Reviewed-by: Ben Wagner <benjaminwagner@google.com>
Commit-Queue: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipes')
-rw-r--r-- | infra/bots/recipes/infra.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/infra/bots/recipes/infra.py b/infra/bots/recipes/infra.py index 5482a7fb84..fac2c5d5b6 100644 --- a/infra/bots/recipes/infra.py +++ b/infra/bots/recipes/infra.py @@ -24,7 +24,11 @@ def RunSteps(api): api.infra.update_go_deps() # Run the infra tests. - with api.context(cwd=api.vars.skia_dir, env=api.infra.go_env): + repo_name = api.properties['repository'].split('/')[-1] + if repo_name.endswith('.git'): + repo_name = repo_name[:-len('.git')] + with api.context(cwd=api.vars.checkout_root.join(repo_name), + env=api.infra.go_env): api.step('infra_tests', cmd=['make', '-C', 'infra/bots', 'test']) |