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:
parent
ac7a5823e2
commit
6d1df591e2
|
@ -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
|
||||
|
|
|
@ -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'
|
||||
|
|
Loading…
Reference in New Issue