mirror of https://github.com/containers/podman.git
Bindings test: emit GIT_COMMIT, for links in logs
Add a magic 'echo' to runner.sh, displaying $GIT_COMMIT in a special syntax. The logformatter script, seeing this, will hyperlink error messages to the failing source file. Signed-off-by: Ed Santiago <santiago@redhat.com>
This commit is contained in:
parent
93138541f3
commit
d5c3cc9496
|
@ -82,9 +82,16 @@ function _run_bindings() {
|
||||||
# shellcheck disable=SC2155
|
# shellcheck disable=SC2155
|
||||||
export PATH=$PATH:$GOSRC/hack
|
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
|
# Subshell needed so logformatter will write output in cwd; if it runs in
|
||||||
# the subdir, .cirrus.yml will not find the html'ized log
|
# the subdir, .cirrus.yml will not find the html'ized log
|
||||||
(cd pkg/bindings/test && \
|
(cd pkg/bindings/test && \
|
||||||
|
echo "$gitcommit_magic" && \
|
||||||
ginkgo -progress -trace -noColor -debug -timeout 30m -r -v) |& logformatter
|
ginkgo -progress -trace -noColor -debug -timeout 30m -r -v) |& logformatter
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue