Skip to content
Snippets Groups Projects
Commit 88c1d13b authored by Matt Harbison's avatar Matt Harbison
Browse files

test-http-proxy: redirect proxy stdout to /dev/null

This output hasn't been getting flushed, but would alter the log if it ever grew
large enough.  See 23b07333a8b2.
parent 0afc4206
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
$ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid $ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid
$ cat hg.pid >> $DAEMON_PIDS $ cat hg.pid >> $DAEMON_PIDS
$ cd .. $ cd ..
$ tinyproxy.py $HGPORT1 localhost >proxy.log 2>&1 </dev/null & $ tinyproxy.py $HGPORT1 localhost 2>proxy.log >/dev/null </dev/null &
$ while [ ! -f proxy.pid ]; do sleep 0; done $ while [ ! -f proxy.pid ]; do sleep 0; done
$ cat proxy.pid >> $DAEMON_PIDS $ cat proxy.pid >> $DAEMON_PIDS
......
...@@ -54,6 +54,7 @@ ...@@ -54,6 +54,7 @@
self.requestline, str(code), str(size), self.requestline, str(code), str(size),
''.join([' %s:%s' % h for h in sorted(xheaders)])) ''.join([' %s:%s' % h for h in sorted(xheaders)]))
# Flush for Windows, so output isn't lost on TerminateProcess() # Flush for Windows, so output isn't lost on TerminateProcess()
sys.stdout.flush()
sys.stderr.flush() sys.stderr.flush()
def _connect_to(self, netloc, soc): def _connect_to(self, netloc, soc):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment