Received: from eggs.gnu.org ([2001:4830:134:3::10]:56765) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bzM17-00053y-RH for qemu-devel@nongnu.org; Wed, 26 Oct 2016 07:05:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bzM12-0004um-PJ for qemu-devel@nongnu.org; Wed, 26 Oct 2016 07:05:09 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:40749) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1bzM12-0004ua-HI for qemu-devel@nongnu.org; Wed, 26 Oct 2016 07:05:04 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.17/8.16.0.17) with SMTP id u9QB4Zqc142261 for ; Wed, 26 Oct 2016 07:05:03 -0400 Received: from e06smtp09.uk.ibm.com (e06smtp09.uk.ibm.com [195.75.94.105]) by mx0a-001b2d01.pphosted.com with ESMTP id 26atc1u1ed-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Wed, 26 Oct 2016 07:05:02 -0400 Received: from localhost by e06smtp09.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Wed, 26 Oct 2016 12:05:00 +0100 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id 13B5A219005F for ; Wed, 26 Oct 2016 12:04:14 +0100 (BST) Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id u9QB4w5315466888 for ; Wed, 26 Oct 2016 11:04:58 GMT Received: from d06av08.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id u9QB4vpH028583 for ; Wed, 26 Oct 2016 05:04:57 -0600 References: <1477326663-67817-1-git-send-email-pbonzini@redhat.com> <1477326663-67817-3-git-send-email-pbonzini@redhat.com> From: Halil Pasic Date: Wed, 26 Oct 2016 13:04:36 +0200 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="mBuhr2BOlbga3iOJjwbNnoNjnkRxK2sX5" Message-Id: <1d7fddf0-64c4-521b-7eb7-81c1674a8d73@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH 2/2] tests: send error_report to test log List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: armbru@redhat.com, dgilbert@redhat.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --mBuhr2BOlbga3iOJjwbNnoNjnkRxK2sX5 From: Halil Pasic To: Paolo Bonzini , qemu-devel@nongnu.org Cc: armbru@redhat.com, dgilbert@redhat.com Message-ID: <1d7fddf0-64c4-521b-7eb7-81c1674a8d73@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH 2/2] tests: send error_report to test log References: <1477326663-67817-1-git-send-email-pbonzini@redhat.com> <1477326663-67817-3-git-send-email-pbonzini@redhat.com> In-Reply-To: Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable On 10/25/2016 01:34 PM, Paolo Bonzini wrote: >=20 > On 25/10/2016 13:06, Halil Pasic wrote: >> >=20 >> >=20 >> > 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 >> > [..] >>> >> void error_vprintf(const char *fmt, va_list ap) >>> >> { >>> >> - vfprintf(stderr, fmt, ap); >>> >> + if (g_test_initialized() && !g_test_subprocess()) { >> >=20 >> > 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)= =2E :) >=20 > Paolo >=20 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 --mBuhr2BOlbga3iOJjwbNnoNjnkRxK2sX5 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) iQIcBAEBAgAGBQJYEI3ZAAoJEA0vhuyXGx0A6S8P/AoCywWPAdeBUoG1iBvcojHb jGhRzabnKLVAONZ4byjP0p04zWVkxSer00nx5rQDKc116KVFz8/nrSSC6TIfn0ru eQh5NHhTF7mvIwl/5kgbFiiHHf3u/jj3wYZ5cEPwoq7fgesTAQnFnqIPShpZbq6F ylgzU9Ut38ckO/n6bm9pdr37vQn5jzxRuOlHLpc1bbakbwMiazzYA9wYi52EhngS sNU47iN5Z81YtZpoZIPDsCHJ0mjqg+6NkDvTiPAeRhHy/yv0Mu/PZQwVVsYo00Mo 63dwoLXm4cYBvNQRYTprFcHRy4nRn6EsnJuQ3mPeMiO3jiFbzckjeQs7dyhQoAVv a9fZz1zPxuaGOyj7YhcBZjJrF7v+B23NKe9N77i2iM8756oVHbriPjWkzGvX8d+G 5bEvRwzGTh7hMDCrJw9MKEewuCgOmyyzxjnxEldfjJRxC1MXRRNesHZ8D+qXejgm JoFwm3rNnYhFD38SqJMquv30bvRclkPTmb4HLd6tw+BjxcCtkXeV5WfZ4uK6lB6G gd/sKHWgdrY2TlYepMujxpRbBhOsmytKHSBkdwF/x4Jrkb+oY8lm/Hdm0Y5phqFh ukAnxc6fYf/bkZhdKwCdzjYcNIudW7ZYYGParTR8hZvhtKrMrVy+NbHtJU/kTncj ZOUCmvuIHLS8OWUiVumj =pe16 -----END PGP SIGNATURE----- --mBuhr2BOlbga3iOJjwbNnoNjnkRxK2sX5--