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

Unified Diff: appengine/swarming/tools/start_servers.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 | « appengine/swarming/tools/start_bot.py ('k') | client/tests/file_path_test.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: appengine/swarming/tools/start_servers.py
diff --git a/appengine/swarming/tools/start_servers.py b/appengine/swarming/tools/start_servers.py
index b5c1cb29b474593fcbb439d913bf3ff82f5d3f7f..e694eb23569bd6160c5c0f3f53d5bd5a399b1d74 100755
--- a/appengine/swarming/tools/start_servers.py
+++ b/appengine/swarming/tools/start_servers.py
@@ -13,8 +13,13 @@ import tempfile
APP_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
+CLIENT_DIR = os.path.join(os.path.dirname(os.path.dirname(APP_DIR)), 'client')
sys.path.insert(0, APP_DIR)
+sys.path.insert(0, CLIENT_DIR)
+from third_party.depot_tools import fix_encoding
+sys.path.pop(0)
+
import test_env
test_env.setup_test_env()
@@ -88,6 +93,7 @@ class LocalServers(object):
def main():
+ fix_encoding.fix_encoding()
parser = argparse.ArgumentParser(description=sys.modules[__name__].__doc__)
parser.add_argument('-a', '--all', action='store_true')
args = parser.parse_args()
« no previous file with comments | « appengine/swarming/tools/start_bot.py ('k') | client/tests/file_path_test.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698