From: Mark Wielaard <mark@klomp.org>
To: "Frank Ch. Eigler" <fche@elastic.org>, dwz@sourceware.org
Subject: Re: patch testsuite - verbose logging
Date: Tue, 12 Jul 2022 15:49:14 +0200 [thread overview]
Message-ID: <4e51d3d6f9f1671bac7549c88318bc68a7c4034e.camel@klomp.org> (raw)
In-Reply-To: <YsXFkJRKnjcg0lxP@elastic.org>
Hi Frank,
On Wed, 2022-07-06 at 13:25 -0400, Frank Ch. Eigler via Dwz wrote:
> The following patch puts "sh -x" tracing data into the dwz.log file.
I agree it would be good to have a bit more information in the dwz.log
file. But -x is very verbose. I might get lost. But maybe others think
it is fine. I am not against it. But I think just capturing stdout and
verbose log it is fine. We can add some extra echos in the tests.
> Accidentally, this makes debuginfod-involving tests pass, since their
> stderr DEBUGINFOD_PRGRESS traffic show up in stdout rather than
> stderr
> (which is recorded as a fail).
I think that is a reason to not do the 2>@ redirection.
We did recently find an issue with gdb-add-index because it had error
output. And I think we would like to know if the tests accidentially
triggered debuginfod because that really isn't supposed to happen. So
if it does I think we want the testcase to fail so we can investigate
why debuginfod is trying to fetch something when it shouldn't.
Cheers,
Mark
> diff --git a/testsuite/dwz.tests/dwz-tests.exp
> b/testsuite/dwz.tests/dwz-tests.exp
> index 811767f57918..73fe73716302 100644
> --- a/testsuite/dwz.tests/dwz-tests.exp
> +++ b/testsuite/dwz.tests/dwz-tests.exp
> @@ -116,7 +116,8 @@ foreach test $tests {
> exec mkdir $dir
>
> cd $dir
> - if { [catch { exec sh -e $test } msg] } {
> + if { [catch { exec sh -x -e $test 2>@ stdout } msg] } {
> + verbose -log "$msg"
> if { [lindex $::errorCode 0] == "CHILDSTATUS" && \
> [lindex $::errorCode 2] == 77 } {
> unsupported "$test"
> @@ -126,6 +127,7 @@ foreach test $tests {
> fail "$test"
> }
> } else {
> + verbose -log "$msg"
> if { [file exists dwz.info ] } {
> set info [exec cat dwz.info]
> verbose -log "$test:" 1
next prev parent reply other threads:[~2022-07-12 13:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-07-06 17:25 Frank Ch. Eigler
2022-07-12 13:49 ` Mark Wielaard [this message]
2022-07-12 14:09 ` Frank Ch. Eigler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4e51d3d6f9f1671bac7549c88318bc68a7c4034e.camel@klomp.org \
--to=mark@klomp.org \
--cc=dwz@sourceware.org \
--cc=fche@elastic.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).