From 1136c664f1090c5f89c28e98a75d5cc3f5e2867d Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Mon, 15 May 2023 19:51:20 -0400 Subject: [PATCH] minor update --- ci/travis_run.py | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/ci/travis_run.py b/ci/travis_run.py index b3a3626d..8b524314 100755 --- a/ci/travis_run.py +++ b/ci/travis_run.py @@ -23,12 +23,14 @@ def execute(command): process = subprocess.Popen(command, stdout=subprocess.PIPE) while True: output = process.stdout.readline() - if output == '' and process.poll() is not None: - break if output: - print output.strip() - sys.stdout.flush() - return process.returncode + line = output.decode('ascii').rstrip() + print(">>> " + line) + process.stdout.flush() + ret = process.poll() + if ret is not None: + return ret + return -1 def main(argv):