Simon Jakobi pushed to branch wip/sjakobi/T12934-line-buffer-stdout at Glasgow Haskell Compiler / GHC
Commits:
-
cd91c746
by Simon Jakobi at 2026-08-28T20:26:37+02:00
1 changed file:
Changes:
| ... | ... | @@ -38,6 +38,10 @@ import term_color |
| 38 | 38 | from term_color import Color, colored
|
| 39 | 39 | import cpu_features
|
| 40 | 40 | |
| 41 | +# Line-buffer stdout: when it is a pipe (hadrian, CI), the block-buffered
|
|
| 42 | +# default can delay all progress output until the run ends (#12934).
|
|
| 43 | +sys.stdout.reconfigure(line_buffering=True) # type: ignore[union-attr]
|
|
| 44 | + |
|
| 41 | 45 | # Readline sometimes spews out ANSI escapes for some values of TERM,
|
| 42 | 46 | # which result in test failures. Thus set TERM to a nice, simple, safe
|
| 43 | 47 | # value.
|