zulip_tools: Flush ‘set -x’-style messages in run.

Otherwise they often get buffered until after the command actually
runs.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg 2021-06-09 13:12:19 -07:00 committed by Tim Abbott
parent 342834ee9c
commit d8cb418586
1 changed files with 1 additions and 1 deletions

View File

@ -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)