| OLD | NEW |
| 1 #!/usr/bin/python | 1 #!/usr/bin/python |
| 2 | 2 |
| 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. | 3 # Copyright (c) 2014 The Chromium Authors. All rights reserved. |
| 4 # Use of this source code is governed by a BSD-style license that can be | 4 # Use of this source code is governed by a BSD-style license that can be |
| 5 # found in the LICENSE file. | 5 # found in the LICENSE file. |
| 6 | 6 |
| 7 """Steps to archive dartium, content_shell, and chromedriver from buildbots. | 7 """Steps to archive dartium, content_shell, and chromedriver from buildbots. |
| 8 | 8 |
| 9 Imported by buildbot_annotated_steps.py and multivm_archive.py | 9 Imported by buildbot_annotated_steps.py |
| 10 """ | 10 """ |
| 11 | 11 |
| 12 import imp | 12 import imp |
| 13 import os | 13 import os |
| 14 import platform | 14 import platform |
| 15 import re | 15 import re |
| 16 import subprocess | 16 import subprocess |
| 17 import sys | 17 import sys |
| 18 | 18 |
| 19 import dartium_bot_utils | 19 import dartium_bot_utils |
| (...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 269 def RemoveArchives(archives): | 269 def RemoveArchives(archives): |
| 270 """Remove the list of archives in Google storage. | 270 """Remove the list of archives in Google storage. |
| 271 """ | 271 """ |
| 272 for archive in archives: | 272 for archive in archives: |
| 273 if archive.find(GS_SITE) == 0: | 273 if archive.find(GS_SITE) == 0: |
| 274 cmd = [GSUTIL, 'rm', archive.rstrip()] | 274 cmd = [GSUTIL, 'rm', archive.rstrip()] |
| 275 (status, _) = ExecuteCommand(cmd) | 275 (status, _) = ExecuteCommand(cmd) |
| 276 if status != 0: | 276 if status != 0: |
| 277 return status | 277 return status |
| 278 return 0 | 278 return 0 |
| OLD | NEW |