summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorOpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com>2021-11-29 22:44:18 +0100
committerGitHub <noreply@github.com>2021-11-29 22:44:18 +0100
commit5f7e3c939ccecd3dee105bc588b064a28a0642a0 (patch)
treef8537a2f565fe10cd01f67bd4ec7ea84c2fd594f /contrib
parent97c21ff78fdcbe8452e1032049c7d606dc7ce228 (diff)
parentd5c3cc9496739d3883a7adf3be20bcaafd0318e8 (diff)
downloadpodman-5f7e3c939ccecd3dee105bc588b064a28a0642a0.tar.gz
podman-5f7e3c939ccecd3dee105bc588b064a28a0642a0.tar.bz2
podman-5f7e3c939ccecd3dee105bc588b064a28a0642a0.zip
Merge pull request #12407 from edsantiago/bindings_test_add_gitcommit
Bindings test: emit GIT_COMMIT, for links in logs
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/cirrus/runner.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/contrib/cirrus/runner.sh b/contrib/cirrus/runner.sh
index 4c27dfa4b..899d14c96 100755
--- a/contrib/cirrus/runner.sh
+++ b/contrib/cirrus/runner.sh
@@ -82,9 +82,16 @@ function _run_bindings() {
# shellcheck disable=SC2155
export PATH=$PATH:$GOSRC/hack
+ # if logformatter sees this, it can link directly to failing source lines
+ local gitcommit_magic=
+ if [[ -n "$GIT_COMMIT" ]]; then
+ gitcommit_magic="/define.gitCommit=${GIT_COMMIT}"
+ fi
+
# Subshell needed so logformatter will write output in cwd; if it runs in
# the subdir, .cirrus.yml will not find the html'ized log
(cd pkg/bindings/test && \
+ echo "$gitcommit_magic" && \
ginkgo -progress -trace -noColor -debug -timeout 30m -r -v) |& logformatter
}