Prevent go test output being interleaved with python

This commit is contained in:
Kovid Goyal 2023-08-05 10:15:08 +05:30
parent a3369465dc
commit 88beb58838
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -178,6 +178,8 @@ def print_go() -> None:
if go_proc.wait(0.1) is None:
go_proc.kill()
sys.stdout.flush()
sys.stderr.flush()
print(go_proc.stdout.read().decode('utf-8', 'replace'), end='', flush=True)
go_proc.stdout.close()
go_proc.wait()