scons: avoid interactive access in non-tty
authorEarl Ou <shunhsingou@google.com>
Mon, 5 Oct 2020 07:29:51 +0000 (15:29 +0800)
committerEarl Ou <shunhsingou@google.com>
Tue, 6 Oct 2020 00:25:03 +0000 (00:25 +0000)
commit2286384a03e9637059f61beeac863593a183d558
treeffc7094daf6d32f8e57c17ffdd709f4b3d40e854
parentae8b46e8b9ee1563e05eee129a0b48da1b97b495
scons: avoid interactive access in non-tty

We saw some strange behavior when building scons without an interactive
TTY. This seems be caused by the control signal set from
curses.initscr() and endwin(). To avoid issues, we should avoid those
operation when running in non interactive situation.

Change-Id: I9cf8e48a786d47d567ba193f0b069f638e8db647
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/35595
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
site_scons/gem5_scons/__init__.py