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

Unified Diff: utils/compiler/buildbot.py

Issue 11137007: Delete temporary profile files for Opera buildbot in addition to Firefox. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: utils/compiler/buildbot.py
===================================================================
--- utils/compiler/buildbot.py (revision 13638)
+++ utils/compiler/buildbot.py (working copy)
@@ -296,7 +296,7 @@
return 0
-def _DeleteFirefoxProfiles(directory):
+def _DeleteTempWebdriverProfiles(directory):
"""Find all the firefox profiles in a particular directory and delete them."""
for f in os.listdir(directory):
item = os.path.join(directory, f)
@@ -324,12 +324,12 @@
if system == 'win7':
shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp',
ignore_errors=True)
- elif browser == 'ff':
+ elif browser == 'ff' or 'opera':
# Note: the buildbots run as root, so we can do this without requiring a
# password. The command won't actually work on regular machines without
# root permissions.
- _DeleteFirefoxProfiles('/tmp')
- _DeleteFirefoxProfiles('/var/tmp')
+ _DeleteTempWebdriverProfiles('/tmp')
+ _DeleteTempWebdriverProfiles('/var/tmp')
def ClobberBuilder(mode):
""" Clobber the builder before we do the build.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698