(self, stdout_file: TextIO)
| 308 | return (retcode, tmp_files) |
| 309 | |
| 310 | def read_stdout(self, stdout_file: TextIO) -> str: |
| 311 | stdout_file.seek(0) |
| 312 | try: |
| 313 | return stdout_file.read().strip() |
| 314 | except Exception as exc: |
| 315 | # gh-101634: Catch UnicodeDecodeError if stdout cannot be |
| 316 | # decoded from encoding |
| 317 | raise WorkerError(self.test_name, |
| 318 | f"Cannot read process stdout: {exc}", |
| 319 | stdout=None, |
| 320 | state=State.WORKER_BUG) |
| 321 | |
| 322 | def read_json(self, json_file: JsonFile, json_tmpfile: TextIO | None, |
| 323 | stdout: str) -> tuple[TestResult, str]: |
no test coverage detected