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

Unified Diff: tools/bots/compiler.py

Issue 11783027: Small improvement on the "delete temp dir on windows"-hack in the annotated steps script (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: tools/bots/compiler.py
diff --git a/tools/bots/compiler.py b/tools/bots/compiler.py
index 9e88f2c140303d03f0b9cbcf5de7e0d5e3560195..f51520ab43a7267926ffb996aa0a6206157b9794 100644
--- a/tools/bots/compiler.py
+++ b/tools/bots/compiler.py
@@ -257,8 +257,11 @@ def CleanUpTemporaryFiles(system, browser):
- browser: one of the browsers, see GetBuildInfo
"""
if system.startswith('win'):
- shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp',
- ignore_errors=True)
+ temp_dir = 'C:\\Users\\chrome-bot\\AppData\\Local\\Temp'
+ for name in os.listdir(temp_dir):
+ fullname = os.path.join(temp_dir, name)
+ if os.path.isdir(fullname):
+ shutil.rmtree(fullname, ignore_errors=True)
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
« 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