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

Unified Diff: tools/dartium/buildbot_annotated_steps.py

Issue 2355383002: Add dartium buildbot step to clear temp directory on Windows (Closed)
Patch Set: Created 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/dartium/buildbot_annotated_steps.py
diff --git a/tools/dartium/buildbot_annotated_steps.py b/tools/dartium/buildbot_annotated_steps.py
index f8eeb23682a9a0067ae8c71b5dd929172ba27f67..aeaed2f3495c9a75b7c2913ddfeb3f369911f31d 100755
--- a/tools/dartium/buildbot_annotated_steps.py
+++ b/tools/dartium/buildbot_annotated_steps.py
@@ -53,6 +53,10 @@ def RunDartTests(mode, component, suite, arch, checked, test_filter=None):
print '@@@STEP_FAILURE@@@'
return status
+def ClearTemp():
+ if platform.system() == 'Windows':
+ shutil.rmtree('C:\\Users\\chrome-bot\\AppData\\Local\\Temp',
+ ignore_errors=True)
def Test(info, component, suite, checked, test_filter=None):
"""Test a particular component (e.g., dartium or content_shell(drt)).
@@ -70,6 +74,7 @@ def Test(info, component, suite, checked, test_filter=None):
info.name,
info.version,
component, checked)
+ ClearTemp()
return status
@@ -97,11 +102,10 @@ def main():
if info.mode == 'Release' or platform.system() != 'Darwin':
result = Test(info, 'drt', 'layout', 'unchecked') or result
result = Test(info, 'drt', 'layout', 'checked') or result
-
# Run dartium tests
result = Test(info, 'dartium', 'core', 'unchecked') or result
result = Test(info, 'dartium', 'core', 'checked') or result
-
+
# Run ContentShell tests
# NOTE: We don't run ContentShell tests on dartium-*-inc builders to keep
# cycle times down.
« 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