diff options
author | Robert Iannucci <iannucci@google.com> | 2017-07-07 14:36:58 -0700 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-07-10 13:46:35 +0000 |
commit | 8cd50418afc6bf07448beb5980ac1d6c1f9fbd86 (patch) | |
tree | d66422c329b76e8e1849da69675d800575019b31 /infra/bots/recipes/upload_dm_results.py | |
parent | 818ac5a00dfd570d2b291b7524a70ecd4ef55770 (diff) |
Remove dependency on recipe_engine/shutil.
R=borenet@google.com
Bug: chromium:739984
Change-Id: I077c4e6f494eb7e93851201120048ba1ef5faa07
Reviewed-on: https://skia-review.googlesource.com/21921
Commit-Queue: Eric Boren <borenet@google.com>
Reviewed-by: Eric Boren <borenet@google.com>
Diffstat (limited to 'infra/bots/recipes/upload_dm_results.py')
-rw-r--r-- | infra/bots/recipes/upload_dm_results.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/infra/bots/recipes/upload_dm_results.py b/infra/bots/recipes/upload_dm_results.py index acfb426170..61d52ac0cf 100644 --- a/infra/bots/recipes/upload_dm_results.py +++ b/infra/bots/recipes/upload_dm_results.py @@ -14,7 +14,6 @@ DEPS = [ 'recipe_engine/json', 'recipe_engine/path', 'recipe_engine/properties', - 'recipe_engine/shutil', 'recipe_engine/step', 'recipe_engine/time', ] @@ -54,11 +53,11 @@ def RunSteps(api): json_file = results_dir.join(DM_JSON) log_file = results_dir.join(VERBOSE_LOG) tmp_dir = api.path['start_dir'].join('tmp_upload') - api.shutil.makedirs('tmp dir', tmp_dir, infra_step=True) - api.shutil.copy('copy dm.json', json_file, tmp_dir) - api.shutil.copy('copy verbose.log', log_file, tmp_dir) - api.shutil.remove('rm old dm.json', json_file) - api.shutil.remove('rm old verbose.log', log_file) + api.file.ensure_directory('makedirs tmp dir', tmp_dir) + api.file.copy('copy dm.json', json_file, tmp_dir) + api.file.copy('copy verbose.log', log_file, tmp_dir) + api.file.remove('rm old dm.json', json_file) + api.file.remove('rm old verbose.log', log_file) # Upload the images. image_dest_path = 'gs://%s/dm-images-v1' % api.properties['gs_bucket'] |