aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/test
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-02-03 18:01:02 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-02-03 18:11:37 -0800
commit779a666acf9da29392c6ea36fc07b50b660ed6a2 (patch)
tree1dccb77ae78ab1239dc75639898c675aabe7bfc2 /tensorflow/tools/test
parent24cd70f4c141c4c36b05eab57a5f9ca99ff0fc3a (diff)
Do not log test results using the text format, the JSON format is sufficient.
Change: 146539043
Diffstat (limited to 'tensorflow/tools/test')
-rw-r--r--tensorflow/tools/test/run_and_gather_logs.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tensorflow/tools/test/run_and_gather_logs.py b/tensorflow/tools/test/run_and_gather_logs.py
index 3742563764..ca6eccbff3 100644
--- a/tensorflow/tools/test/run_and_gather_logs.py
+++ b/tensorflow/tools/test/run_and_gather_logs.py
@@ -74,10 +74,8 @@ def main(unused_args):
# Additional bits we receive from bazel
test_results.build_configuration.CopyFrom(gather_build_configuration())
- serialized_test_results = text_format.MessageToString(test_results)
-
if not FLAGS.test_log_output_dir:
- print(serialized_test_results)
+ print(text_format.MessageToString(test_results))
return
if FLAGS.test_log_output_filename:
@@ -91,7 +89,6 @@ def main(unused_args):
else:
output_path = os.path.join(
os.path.abspath(FLAGS.test_log_output_dir), file_name)
- gfile.GFile(output_path, "w").write(serialized_test_results)
json_test_results = json_format.MessageToJson(test_results)
gfile.GFile(output_path + ".json", "w").write(json_test_results)
tf_logging.info("Test results written to: %s" % output_path)