[libvirt PATCH v3 09/12] ci: jobs.sh: Introduce a quiet version of run_cmd
Daniel P. Berrangé
berrange at redhat.com
Tue Sep 19 11:23:57 UTC 2023
On Tue, Sep 19, 2023 at 11:15:04AM +0200, Erik Skultety wrote:
> 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 at redhat.com>
> ---
> ci/jobs.sh | 5 +++++
> 1 file changed, 5 insertions(+)
Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>
With regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org -o- https://fstop138.berrange.com :|
|: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
More information about the libvir-list
mailing list