]> xenbits.xensource.com Git - xen-guest-agent.git/commitdiff
ci: use stderr not stdout in build wrapper
authorYann Dirson <yann.dirson@vates.fr>
Fri, 24 Nov 2023 11:03:04 +0000 (12:03 +0100)
committerYann Dirson <yann.dirson@vates.fr>
Fri, 1 Dec 2023 11:22:19 +0000 (12:22 +0100)
The "Executing ..." lines from gitlab-ci occasionally got captured before
the footer of previous collapsed section, so hidden when said section is
collapsed.

Signed-off-by: Yann Dirson <yann.dirson@vates.fr>
devscripts/gitlab-ci-runbuild.sh

index ac61378e1e48708465ae67da1f8cfac49d0b117c..8a22c4da24d873afb0e4e8ca6608aae42ed54780 100755 (executable)
@@ -1,9 +1,10 @@
 #!/bin/sh
 set -e
 
-# all error output to stdout, so shell tracing markers are kept in
-# suitable ordering with collapsable section markers
-exec 2>&1
+# all error output to stderr, so shell tracing markers are kept in
+# suitable ordering with collapsable section markers, *and* with the
+# `Executing` traces issued by gitlab-ci itself
+exec >&2
 
 FOOTER_ID="commit-$(git rev-parse --short HEAD)"
 COLLAPSED_TITLE="$(git log -1 --oneline)"