Commit 3335d5e5 authored by Carlos Garcia Campos's avatar Carlos Garcia Campos

regtest: Limit the stderr files to ~1MB

Some tests send a lot of information to stderr, usually due to parsing
errors in buggy documents. More than 1MB of stderr output is diffcult to
hanlde and in most cases it's redundant with a lot of duplicated messages.
This patch reduced the size of the refs dir for the complete test suite
by 1GB.
parent 24107ac4
......@@ -206,7 +206,9 @@ class Backend:
def __redirect_stderr_to_file(self, fd, out_path):
stderr_file = None
max_size = 1024 * 1024
read_set = [fd]
while read_set:
rlist, wlist, xlist =, [], [])
......@@ -225,7 +227,9 @@ class Backend:
if chunk:
if stderr_file is None:
stderr_file = open(out_path + '.stderr', 'wb')
if max_size > 0:
max_size -= len(chunk)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment