]> git.ipfire.org Git - thirdparty/libvirt.git/commit
ci: jobs.sh: Introduce a quiet version of run_cmd
authorErik Skultety <eskultet@redhat.com>
Tue, 19 Sep 2023 08:46:08 +0000 (10:46 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 19 Sep 2023 11:35:59 +0000 (13:35 +0200)
commite004458616369b63edce1fa7ff8dd68a6b03b9f0
tree60a5f8f00427730fd74f86ec4f3a0cb48d4df87a
parenta91e6f69f4e4f9795bf4688bdeadfa190a529307
ci: jobs.sh: Introduce a quiet version of run_cmd

We've started using the run_cmd helper function to log what kind of
command is being executed as well as actually executing the command.
The problem however is doing I/O redirections for commands which we
don't wish to see any output for whatever reason. Now, if the
redirection is applied at parameter passing to run_cmd it's going to be
applied to the debug print as well. Let's introduce another helper,
run_cmd_quiet which takes care of the I/O redirection and executes the
command completely silently.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
ci/jobs.sh