From 1e6b02b43d2e08ce514494a31b06ce8d83661305 Mon Sep 17 00:00:00 2001 From: "Mark D. Roth" Date: Thu, 1 Dec 2016 12:56:13 -0800 Subject: [PATCH] Add debugging. --- tools/run_tests/jobset.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/run_tests/jobset.py b/tools/run_tests/jobset.py index 6bbcfcfe34f..666c0c32f97 100755 --- a/tools/run_tests/jobset.py +++ b/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