summaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authormmeade <mmeade@chromium.org>2015-08-12 12:47:29 -0700
committerCommit bot <commit-bot@chromium.org>2015-08-12 19:48:05 +0000
commit07919b7c87beae1a855e122566ded3249f6de273 (patch)
tree211546c323856c5e38f591e74e259a35309f9ede /testing
parentd033adf524ad3f446594a528b24411e26e2717e7 (diff)
downloadchromium_src-07919b7c87beae1a855e122566ded3249f6de273.zip
chromium_src-07919b7c87beae1a855e122566ded3249f6de273.tar.gz
chromium_src-07919b7c87beae1a855e122566ded3249f6de273.tar.bz2
Adding additional logging to help eliminate flakiness
BUG= Review URL: https://codereview.chromium.org/1291633003 Cr-Commit-Position: refs/heads/master@{#343074}
Diffstat (limited to 'testing')
-rw-r--r--testing/legion/examples/http_example/http_client.py4
-rw-r--r--testing/legion/examples/http_example/http_test.py3
2 files changed, 5 insertions, 2 deletions
diff --git a/testing/legion/examples/http_example/http_client.py b/testing/legion/examples/http_example/http_client.py
index 830ae62..3153cdf 100644
--- a/testing/legion/examples/http_example/http_client.py
+++ b/testing/legion/examples/http_example/http_client.py
@@ -20,8 +20,8 @@ def main():
args = GetArgs()
conn = httplib.HTTPConnection(args.server, args.port)
conn.request('GET', '/')
- response = conn.getresponse()
- assert response.read() == 'SUCCESS!'
+ response = conn.getresponse().read()
+ assert response == 'SUCCESS!', '%s != SUCCESS!' % response
if __name__ == '__main__':
diff --git a/testing/legion/examples/http_example/http_test.py b/testing/legion/examples/http_example/http_test.py
index fe6e767..433a523 100644
--- a/testing/legion/examples/http_example/http_test.py
+++ b/testing/legion/examples/http_example/http_test.py
@@ -3,6 +3,7 @@
# found in the LICENSE file.
import argparse
+import logging
import os
import sys
@@ -60,6 +61,8 @@ class HttpTest(legion_test_case.TestCase):
['python', 'http_client.py', '--server', server_ip,
'--port', server_port])
client_proc.Wait()
+ logging.info('client_proc.stdout: %s', client_proc.ReadStdout())
+ logging.info('client_proc.stderr: %s', client_proc.ReadStderr())
self.assertEqual(client_proc.GetReturncode(), 0)
finally:
if server_proc: