[Buildroot] [git commit branch/2018.02.x] utils/test-pkg: log the output of merge-config

Peter Korsgaard peter at korsgaard.com
Thu Jul 19 21:28:02 UTC 2018


commit: https://git.buildroot.net/buildroot/commit/?id=d283cc2cc00c1aefb21ee64bfc52443e3f4efb74
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2018.02.x

Currently, the stdout is consigned to oblivion, while the stderr is not
redirected at all. So, when the configuration under test redefines a
symbol, like is the case when testing busybox for example, there is an
ugly warning.

So, just redirect both stdout and stderr to the logfile.

Signed-off-by: "Yann E. MORIN" <yann.morin.1998 at free.fr>
Tested-by: Matt Weber <matthew.weber at rockwellcollins.com>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout at mind.be>
(cherry picked from commit 2664022787eb396125b5696a2d42c460ef54d359)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 utils/test-pkg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/utils/test-pkg b/utils/test-pkg
index cd7b9dad7b..17d3756d75 100755
--- a/utils/test-pkg
+++ b/utils/test-pkg
@@ -100,7 +100,7 @@ build_one() {
 
     support/kconfig/merge_config.sh -O "${dir}" \
         "${toolchainconfig}" "support/config-fragments/minimal.config" "${cfg}" \
-        > /dev/null
+        >> "${dir}/logfile" 2>&1
     # We want all the options from the snippet to be present as-is (set
     # or not set) in the actual .config; if one of them is not, it means
     # some dependency from the toolchain or arch is not available, in


More information about the buildroot mailing list