# HG changeset patch # User Matt Harbison # Date 1497923634 14400 # Node ID 88c1d13b637bf50d1213f18061ba9495376c1c03 # Parent 0afc4206d02b79a1c519ef1dad08667258b1d830 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. diff --git a/tests/test-http-proxy.t b/tests/test-http-proxy.t --- a/tests/test-http-proxy.t +++ b/tests/test-http-proxy.t @@ -8,7 +8,7 @@ $ hg serve --config server.uncompressed=True -p $HGPORT -d --pid-file=hg.pid $ cat hg.pid >> $DAEMON_PIDS $ cd .. - $ tinyproxy.py $HGPORT1 localhost >proxy.log 2>&1 proxy.log >/dev/null > $DAEMON_PIDS diff --git a/tests/tinyproxy.py b/tests/tinyproxy.py --- a/tests/tinyproxy.py +++ b/tests/tinyproxy.py @@ -54,6 +54,7 @@ self.requestline, str(code), str(size), ''.join([' %s:%s' % h for h in sorted(xheaders)])) # Flush for Windows, so output isn't lost on TerminateProcess() + sys.stdout.flush() sys.stderr.flush() def _connect_to(self, netloc, soc):