Skip to content

Commit 36ca378

Browse files
demartinofralukeseawalker
authored andcommitted
Discard stdout when using check_call to avoid polluting the logs
Signed-off-by: Francesco De Martino <[email protected]>
1 parent f61bb2f commit 36ca378

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/common/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ def run_command(command, env=None, raise_on_error=True, execute_as_user=None, lo
129129
"""
130130
_run_command(
131131
lambda _command, _env, _preexec_fn: subprocess.check_call(
132-
_command, env=_env, preexec_fn=_preexec_fn, timeout=timeout
132+
_command, env=_env, preexec_fn=_preexec_fn, timeout=timeout, stdout=subprocess.DEVNULL
133133
),
134134
command,
135135
env,

0 commit comments

Comments
 (0)