qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Halil Pasic <pasic@linux.vnet.ibm.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Cc: armbru@redhat.com, dgilbert@redhat.com
Subject: Re: [Qemu-devel] [PATCH 2/2] tests: send error_report to test log
Date: Wed, 26 Oct 2016 13:04:36 +0200	[thread overview]
Message-ID: <1d7fddf0-64c4-521b-7eb7-81c1674a8d73@linux.vnet.ibm.com> (raw)
In-Reply-To: <a7edf04f-9f96-6503-4f05-9b3ba0716627@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1249 bytes --]



On 10/25/2016 01:34 PM, Paolo Bonzini wrote:
> 
> On 25/10/2016 13:06, Halil Pasic wrote:
>> > 
>> > 
>> > On 10/24/2016 06:31 PM, Paolo Bonzini wrote:
>>> >> Implement error_vprintf to send the output of error_report to
>>> >> the test log.  This silences test-vmstate.
>>> >>
>>> >> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>> > [..]
>>> >>  void error_vprintf(const char *fmt, va_list ap)
>>> >>  {
>>> >> -    vfprintf(stderr, fmt, ap);
>>> >> +    if (g_test_initialized() && !g_test_subprocess()) {
>> > 
>> > I like the approach. What I do not like is:
>> > * we still generate noise only less visible
> It's not noise if it ends up exactly in the right place (the test logs). :)
> 
> Paolo
> 

I assumed (for some strange reason) that the messages (submitted via
g_test_message) will not only appear in the xml report but also in the
html report. I was wrong. And while I still believe that the messages in
question (the vmstate test) do not add any value to the xml report and
on the other hand that situations could emerge where having the error
reported more prominently would be more convenient, I am very much fine
with this solution.

Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]

  reply	other threads:[~2016-10-26 11:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-24 16:31 [Qemu-devel] [PATCH 0/2] tests: silence error_report in tests Paolo Bonzini
2016-10-24 16:31 ` [Qemu-devel] [PATCH 1/2] qemu-error: remove dependency of stubs on monitor Paolo Bonzini
2016-10-24 16:31 ` [Qemu-devel] [PATCH 2/2] tests: send error_report to test log Paolo Bonzini
2016-10-25 11:06   ` Halil Pasic
2016-10-25 11:34     ` Paolo Bonzini
2016-10-26 11:04       ` Halil Pasic [this message]
2016-10-25 18:43   ` Dr. David Alan Gilbert

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=1d7fddf0-64c4-521b-7eb7-81c1674a8d73@linux.vnet.ibm.com \
    --to=pasic@linux.vnet.ibm.com \
    --cc=armbru@redhat.com \
    --cc=dgilbert@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.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 NNTP newsgroup(s).