Add debugging.

reviewable/pr8782/r3
Mark D. Roth 8 years ago
parent efd7795335
commit 1e6b02b43d
  1. 4
      tools/run_tests/jobset.py

@ -52,6 +52,10 @@ _MAX_RESULT_SIZE = 8192
def sanitized_environment(env):
sanitized = {}
for key, value in env.items():
print 'type(key)=%s, key=\'%s\'' % (type(key), key)
print 'type(value)=%s, value=\'%s\'' % (type(value), value)
print 'key.encode(errors=\'ignore\'): type()=%s, key=%s' % (type(key.encode(errors='ignore')), key.encode(errors='ignore'))
print 'value.encode(errors=\'ignore\'): type()=%s, value=%s' % (type(value.encode(errors='ignore')), value.encode(errors='ignore'))
sanitized[key.encode(errors='ignore')] = value.encode(errors='ignore')
return sanitized

Loading…
Cancel
Save