[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[[PATCH]--edit 3/6] configure: repeat ourselves for the benefit of CI
From: |
Alex Bennée |
Subject: |
[[PATCH]--edit 3/6] configure: repeat ourselves for the benefit of CI |
Date: |
Wed, 21 Dec 2022 07:42:49 +0000 |
Our CI system echos the lines it executes but not the expansions. For
the sake of a line of extra verbosity during the configure phase lets
echo the invocation of script to stdout as well as the log when on CI.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20221202174746.1218017-1-alex.bennee@linaro.org>
---
v2
- only add the extra line on GITLAB_CI
---
configure | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/configure b/configure
index 7a804fb657..d89e883844 100755
--- a/configure
+++ b/configure
@@ -83,9 +83,10 @@ rm -f config.log
# Print a helpful header at the top of config.log
echo "# QEMU configure log $(date)" >> config.log
printf "# Configured with:" >> config.log
-printf " '%s'" "$0" "$@" >> config.log
-echo >> config.log
-echo "#" >> config.log
+# repeat the invocation to log and stdout for CI
+invoke=$(printf " '%s'" "$0" "$@")
+test -n "$GITLAB_CI" && echo "configuring with: $invoke"
+{ echo "$invoke"; echo; echo "#"; } >> config.log
quote_sh() {
printf "%s" "$1" | sed "s,','\\\\'',g; s,.*,'&',"
--
2.34.1
- [[PATCH]--edit 0/6] current status of testing/next, Alex Bennée, 2022/12/21
- [[PATCH]--edit 1/6] configure: Fix check-tcg not executing any tests, Alex Bennée, 2022/12/21
- [[PATCH]--edit 4/6] tests/tcg: fix unused variable in linux-test, Alex Bennée, 2022/12/21
- [[PATCH]--edit 3/6] configure: repeat ourselves for the benefit of CI,
Alex Bennée <=
- [[PATCH]--edit 2/6] gitlab: turn off verbose logging for make check on custom runners, Alex Bennée, 2022/12/21
- [[PATCH]--edit 6/6] gitlab-ci: Disable docs and GUIs for the build-tci and build-tcg-disabled jobs, Alex Bennée, 2022/12/21
- [[PATCH]--edit 5/6] tests/docker: use prebuilt toolchain for debian-hexagon-cross, Alex Bennée, 2022/12/21