Fix a type error when stderr is too large in test harness

Also increase the threshold. 10000 seems more appropriate for asan since
it prints a symbolized stack trace to stderr.
This commit is contained in:
Andrew Noyes 2022-08-31 12:04:23 -07:00
parent ac7a5823e2
commit 6d1df591e2
2 changed files with 2 additions and 2 deletions

View File

@ -175,7 +175,7 @@ class Config:
self.cov_include_files_args = {'help': 'Only consider coverage traces that originated in files matching regex'}
self.cov_exclude_files: str = r'.^'
self.cov_exclude_files_args = {'help': 'Ignore coverage traces that originated in files matching regex'}
self.max_stderr_bytes: int = 1000
self.max_stderr_bytes: int = 10000
self.write_stats: bool = True
self.read_stats: bool = True
self.reproduce_prefix: str | None = None

View File

@ -443,7 +443,7 @@ class Summary:
if stderr_bytes > config.max_stderr_bytes:
child = SummaryTree('StdErrOutputTruncated')
child.attributes['Severity'] = self.stderr_severity
child.attributes['BytesRemaining'] = stderr_bytes - config.max_stderr_bytes
child.attributes['BytesRemaining'] = str(stderr_bytes - config.max_stderr_bytes)
self.out.append(child)
self.out.attributes['Ok'] = '1' if self.ok() else '0'