From d8cb4185868f8fe8dd43c55a5bca30c91d7a1c78 Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Wed, 9 Jun 2021 13:12:19 -0700 Subject: [PATCH] =?UTF-8?q?zulip=5Ftools:=20Flush=20=E2=80=98set=20-x?= =?UTF-8?q?=E2=80=99-style=20messages=20in=20run.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Otherwise they often get buffered until after the command actually runs. Signed-off-by: Anders Kaseorg --- scripts/lib/zulip_tools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/lib/zulip_tools.py b/scripts/lib/zulip_tools.py index c2fb5c1a90..c7c2cba3e8 100755 --- a/scripts/lib/zulip_tools.py +++ b/scripts/lib/zulip_tools.py @@ -222,7 +222,7 @@ def release_deployment_lock() -> None: def run(args: Sequence[str], **kwargs: Any) -> None: # Output what we're doing in the `set -x` style - print("+ {}".format(" ".join(map(shlex.quote, args)))) + print("+ {}".format(" ".join(map(shlex.quote, args))), flush=True) try: subprocess.check_call(args, **kwargs)