aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Mark D. Roth <roth@google.com>2016-12-01 12:48:46 -0800
committerGravatar Mark D. Roth <roth@google.com>2016-12-01 12:48:46 -0800
commitefd7795335aa1aef178155be421e353539f2846a (patch)
tree04cd0ce60a462d5ee3857765b1bca57d4b544fe6
parent53bd69330ca12c8d430997283402a50cbe307e2f (diff)
Attempt to deal with unicode strings in jenkins environment.
-rwxr-xr-xtools/run_tests/jobset.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py
index b84eb3b5d7..6bbcfcfe34 100755
--- a/tools/run_tests/jobset.py
+++ b/tools/run_tests/jobset.py
@@ -52,7 +52,7 @@ _MAX_RESULT_SIZE = 8192
def sanitized_environment(env):
sanitized = {}
for key, value in env.items():
- sanitized[str(key).encode()] = str(value).encode()
+ sanitized[key.encode(errors='ignore')] = value.encode(errors='ignore')
return sanitized
def platform_string():