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

Unified Diff: scripts/slave/run_slavelastic.py

Issue 10389176: Adjust Swarm File Deletion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 8 years, 7 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: scripts/slave/run_slavelastic.py
diff --git a/scripts/slave/run_slavelastic.py b/scripts/slave/run_slavelastic.py
index 6fb9a378461c85655556b81729ac24727a92ced8..3f48e1341c372b1652bc05f3210ed54c1a6968ba 100755
--- a/scripts/slave/run_slavelastic.py
+++ b/scripts/slave/run_slavelastic.py
@@ -5,11 +5,11 @@
# run_slavelastic.py: Runs a test based off of a slavelastic manifest file.
from __future__ import with_statement
+import glob
import json
import optparse
import os
import socket
-import shutil
import sys
import time
import urllib
@@ -210,7 +210,8 @@ def main():
# Remove the old data if there is any
if os.path.isdir(options.data_dest_dir):
print 'Removing old swarm files...'
- shutil.rmtree(options.data_dest_dir)
+ for filename in glob.glob('swarm_tempfile_*.zip'):
+ os.remove(filename)
# Send off the swarm test requests.
highest_exit_code = 0
« 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