]> xenbits.xensource.com Git - libvirt.git/commit
ci: jobs.sh: integration: Execute commands via 'run_cmd[_quiet]' helpers
authorErik Skultety <eskultet@redhat.com>
Tue, 12 Sep 2023 14:30:19 +0000 (16:30 +0200)
committerErik Skultety <eskultet@redhat.com>
Tue, 19 Sep 2023 11:35:59 +0000 (13:35 +0200)
commit0c9603c858e0af37f767b46f461e1feb4e8e1a61
tree7070bab106eaa0374573a51757323c6c2eeb4f4d
parente004458616369b63edce1fa7ff8dd68a6b03b9f0
ci: jobs.sh: integration: Execute commands via 'run_cmd[_quiet]' helpers

Unfortunately, once we go down the line of running our own scripts as
part of GitLab CI jobs rather than open coding Shell in YAML, we lose
the benefit of seeing each line the script executes. The downside of
the default YAML however is that we have to maintain the same piece of
code on 2 places in that case. Let's adopt what we use with other
container jobs and prefix each shell command with 'run_cmd' or
'run_cmd_quiet' which will dump it in the logs before executing.
Flow control expressions and structures are a problem though in this
regard, so let's just print some important values for debugging
purposes.

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