aboutsummaryrefslogtreecommitdiffhomepage
path: root/infra/bots/recipes/upload_nano_results.py
diff options
context:
space:
mode:
authorGravatar Eric Boren <borenet@google.com>2017-06-16 13:10:22 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-06-16 17:41:28 +0000
commit3e2ffd74b57a917a4df8d64785a18cf79ff2aacd (patch)
tree5d504bbf1beb1610b0389cfafb6174e0de564754 /infra/bots/recipes/upload_nano_results.py
parent6ecc911070add386dc9ffeb8b131d21035672fb6 (diff)
[recipes] Switch to file module from recipe_engine
Bug: skia:6704 Change-Id: Id3cefa643316e5676d2038a75240e16d929d6d63 Reviewed-on: https://skia-review.googlesource.com/20146 Commit-Queue: Eric Boren <borenet@google.com> Reviewed-by: Ravi Mistry <rmistry@google.com>
Diffstat (limited to 'infra/bots/recipes/upload_nano_results.py')
-rw-r--r--infra/bots/recipes/upload_nano_results.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/infra/bots/recipes/upload_nano_results.py b/infra/bots/recipes/upload_nano_results.py
index 1bf4ef1d54..0f99a7c857 100644
--- a/infra/bots/recipes/upload_nano_results.py
+++ b/infra/bots/recipes/upload_nano_results.py
@@ -7,8 +7,8 @@
DEPS = [
- 'file',
'recipe_engine/context',
+ 'recipe_engine/file',
'recipe_engine/path',
'recipe_engine/properties',
'recipe_engine/step',
@@ -24,11 +24,11 @@ def RunSteps(api):
src_path = api.path['start_dir'].join(
'perfdata', builder_name, 'data')
with api.context(cwd=src_path):
- results = api.file.glob(
+ results = api.file.glob_paths(
'find results',
- src_path.join('*.json'),
- test_data=[src_path.join('nanobench_abc123.json')],
- infra_step=True)
+ src_path,
+ '*.json',
+ test_data=['nanobench_abc123.json'])
if len(results) != 1: # pragma: nocover
raise Exception('Unable to find nanobench or skpbench JSON file!')