diff options
author | Jez Ng <me@jezng.com> | 2013-06-17 18:13:38 -0700 |
---|---|---|
committer | Jez Ng <me@jezng.com> | 2013-06-17 18:31:36 -0700 |
commit | 4537de04414b3356628ec79fb919d0c10d5eff17 (patch) | |
tree | 34a903e2ffc286e92aa053a8f9f40adf1828f274 /tests/runner.py | |
parent | 83d1e40dc67587c0eee1a5103ee51cfc435aa91d (diff) |
Make browser tests nicer to run.
A bunch of misc changes, including fixing compile-time warnings, and
muting the Python server request log.
Diffstat (limited to 'tests/runner.py')
-rwxr-xr-x | tests/runner.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/runner.py b/tests/runner.py index 4b8a3010..d0559240 100755 --- a/tests/runner.py +++ b/tests/runner.py @@ -11452,6 +11452,9 @@ elif 'browser' in str(sys.argv): result = q.get() s.wfile.write(result) s.wfile.close() + def log_request(code=0, size=0): + # don't log; too noisy + pass httpd = BaseHTTPServer.HTTPServer(('localhost', 9999), TestServerHandler) httpd.serve_forever() # test runner will kill us @@ -11472,6 +11475,9 @@ elif 'browser' in str(sys.argv): s.send_response(500) s.send_header("Content-type", "text/html") s.end_headers() + def log_request(code=0, size=0): + # don't log; too noisy + pass os.chdir(dir) httpd = BaseHTTPServer.HTTPServer(('localhost', 8888), TestServerHandler) httpd.serve_forever() # test runner will kill us |