From f86d79b2844a06799393fa86856aa792e429d021 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Sun, 27 Jan 2019 00:32:22 +0000 Subject: [PATCH] ci: don't use the TTY->pipe hack except on Travis where it's needed. --- .ci/ci_lib.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ci/ci_lib.py b/.ci/ci_lib.py index f1a2ab3f..3147877a 100644 --- a/.ci/ci_lib.py +++ b/.ci/ci_lib.py @@ -47,7 +47,7 @@ if not hasattr(subprocess, 'check_output'): # Force stdout FD 1 to be a pipe, so tools like pip don't spam progress bars. -if sys.platform.startswith('linux'): +if 'TRAVIS_HOME' in os.environ: proc = subprocess.Popen( args=['stdbuf', '-oL', 'cat'], stdin=subprocess.PIPE