Skip to contentSkip to conversation

utils/test-pkg: log the output of merge-config

PATCH New Yann E. MORIN 4 participants 4 messages Jul 8, 2018 – Jul 19, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 utils/test-pkg: log the output of merge-config

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.

---
 utils/test-pkg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/test-pkg +1 -1
index 54951276fa..aa91ee02cf 100755
@@ -131,7 +131,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
Signature · 1 line
2.14.1
#1 lore raw

PATCH 1/1 utils/test-pkg: log the output of merge-config

Yann,

Quoted 8 lines · Yann E. MORIN

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.

#2 lore raw

PATCH 1/1 utils/test-pkg: log the output of merge-config

In reply to Yann E. MORIN
Quoted 8 lines · Yann E. MORIN

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.

Applied to master, thanks.

Regards,
Arnout

Quoted 18 lines
---
 utils/test-pkg | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
utils/test-pkg +1 -1
index 54951276fa..aa91ee02cf 100755
@@ -131,7 +131,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
Signature · 6 lines
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF
#3 lore raw

PATCH 1/1 utils/test-pkg: log the output of merge-config

In reply to Yann E. MORIN
Quoted 10 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Yann" == Yann E MORIN <[email protected]> writes:

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.

Committed to 2018.02.x and 2018.05.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard