mirror of https://github.com/zulip/zulip.git
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:
parent
342834ee9c
commit
d8cb418586
|
@ -222,7 +222,7 @@ def release_deployment_lock() -> None:
|
||||||
|
|
||||||
def run(args: Sequence[str], **kwargs: Any) -> None:
|
def run(args: Sequence[str], **kwargs: Any) -> None:
|
||||||
# Output what we're doing in the `set -x` style
|
# 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:
|
try:
|
||||||
subprocess.check_call(args, **kwargs)
|
subprocess.check_call(args, **kwargs)
|
||||||
|
|
Loading…
Reference in New Issue