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

Unified Diff: client/tools/run_swarming_tests_on_swarming.py

Issue 1390773002: Add an assert to ensure UTF-8 locale when handling file paths. (Closed) Base URL: git@github.com:luci/luci-py.git@master
Patch Set: More fixes Created 5 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 | « client/tools/run_on_bots.py ('k') | client/tools/zip_profiler.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/tools/run_swarming_tests_on_swarming.py
diff --git a/client/tools/run_swarming_tests_on_swarming.py b/client/tools/run_swarming_tests_on_swarming.py
index 71e5cb667ac9de662d62cfc1d022456e7846f877..6c5b7da80367ebf804098a41137b42c023b5452e 100755
--- a/client/tools/run_swarming_tests_on_swarming.py
+++ b/client/tools/run_swarming_tests_on_swarming.py
@@ -18,7 +18,6 @@ __version__ = '0.1'
import glob
import logging
import os
-import shutil
import subprocess
import sys
import tempfile
@@ -31,6 +30,7 @@ import parallel_execution
from third_party import colorama
from third_party.depot_tools import fix_encoding
+from utils import file_path
from utils import tools
@@ -93,7 +93,7 @@ def archive_isolated_triggers(isolate_server, tree_isolated, tests):
for i in xrange(len(tests)))
return zip(tests, [i[0] for i in items])
finally:
- shutil.rmtree(tempdir)
+ file_path.rmtree(tempdir)
« no previous file with comments | « client/tools/run_on_bots.py ('k') | client/tools/zip_profiler.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698