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

Unified Diff: tools/push-to-trunk/push_to_trunk.py

Issue 540973002: Add cwd to all shell commands in auto roll scripts. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 3 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 | « tools/push-to-trunk/git_recipes.py ('k') | tools/push-to-trunk/releases.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/push-to-trunk/push_to_trunk.py
diff --git a/tools/push-to-trunk/push_to_trunk.py b/tools/push-to-trunk/push_to_trunk.py
index 56375fe79b4bbb3dc679096bf6213e051c7ba948..5902f04372094f360ce08c9898c54cf6d9764dd3 100755
--- a/tools/push-to-trunk/push_to_trunk.py
+++ b/tools/push-to-trunk/push_to_trunk.py
@@ -27,6 +27,7 @@
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
import argparse
+import os
import sys
import tempfile
import urllib2
@@ -312,7 +313,7 @@ class ApplyChanges(Step):
def RunStep(self):
self.ApplyPatch(self.Config(PATCH_FILE))
- Command("rm", "-f %s*" % self.Config(PATCH_FILE))
+ os.remove(self.Config(PATCH_FILE))
class AddChangeLog(Step):
@@ -345,7 +346,7 @@ class CommitTrunk(Step):
def RunStep(self):
self.GitCommit(file_name = self.Config(COMMITMSG_FILE))
- Command("rm", "-f %s*" % self.Config(COMMITMSG_FILE))
+ os.remove(self.Config(COMMITMSG_FILE))
class SanityCheck(Step):
« no previous file with comments | « tools/push-to-trunk/git_recipes.py ('k') | tools/push-to-trunk/releases.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698