Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(94)

Unified Diff: scripts/slave/recipe_modules/zip/example.py

Issue 1101673005: Extract functions from path recipe module so that step can depend on it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/api.py ('k') | scripts/slave/recipes/blink_android_trybot.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: scripts/slave/recipe_modules/zip/example.py
diff --git a/scripts/slave/recipe_modules/zip/example.py b/scripts/slave/recipe_modules/zip/example.py
index c7e43d660581eefd63461dba66ca2851ebe23a16..0270ff29d261d71bd69cbbd1af8558774644d7b8 100644
--- a/scripts/slave/recipe_modules/zip/example.py
+++ b/scripts/slave/recipe_modules/zip/example.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
DEPS = [
+ 'file',
'path',
'platform',
'step',
@@ -14,7 +15,7 @@ def GenSteps(api):
temp = api.path.mkdtemp('zip-example')
api.step('touch a', ['touch', temp.join('a')])
api.step('touch b', ['touch', temp.join('b')])
- api.path.makedirs('mkdirs', temp.join('sub', 'dir'))
+ api.file.makedirs('mkdirs', temp.join('sub', 'dir'))
api.step('touch c', ['touch', temp.join('sub', 'dir', 'c')])
# Build zip using 'zip.directory'.
@@ -35,7 +36,7 @@ def GenSteps(api):
# List unzipped content.
api.step('listing', ['find'], cwd=temp.join('output'))
# Clean up.
- api.path.rmtree('cleanup', temp)
+ api.file.rmtree('cleanup', temp)
def GenTests(api):
« no previous file with comments | « scripts/slave/recipe_modules/webrtc/api.py ('k') | scripts/slave/recipes/blink_android_trybot.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698