From nobody Sat Oct 25 19:45:42 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=none dis=none) header.from=redhat.com Return-Path: Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) by mx.zohomail.com with SMTPS id 1520627824695362.6957623280007; Fri, 9 Mar 2018 12:37:04 -0800 (PST) Received: from localhost ([::1]:47980 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOlD-0006Sn-Ut for importer@patchew.org; Fri, 09 Mar 2018 15:37:04 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50299) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1euOdL-00007R-Iw for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1euOdK-0006tA-Gu for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:55 -0500 Received: from mx1.redhat.com ([209.132.183.28]:55556) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1euOdK-0006sv-8m for qemu-devel@nongnu.org; Fri, 09 Mar 2018 15:28:54 -0500 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 8F77A3DE42; Fri, 9 Mar 2018 20:28:53 +0000 (UTC) Received: from localhost (ovpn-116-64.gru2.redhat.com [10.97.116.64]) by smtp.corp.redhat.com (Postfix) with ESMTP id BFC7F1813D; Fri, 9 Mar 2018 20:28:52 +0000 (UTC) From: Eduardo Habkost To: qemu-devel@nongnu.org Date: Fri, 9 Mar 2018 17:28:25 -0300 Message-Id: <20180309202827.12085-7-ehabkost@redhat.com> In-Reply-To: <20180309202827.12085-1-ehabkost@redhat.com> References: <20180309202827.12085-1-ehabkost@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 09 Mar 2018 20:28:53 +0000 (UTC) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 209.132.183.28 Subject: [Qemu-devel] [PATCH 6/8] device-crash-test: Use WARN for known crashes X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Peter Maydell , Thomas Huth , Cleber Rosa Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" We're going to run device-crash-test on "make check", so it's better to make the script less noisy on known errors. Signed-off-by: Eduardo Habkost --- scripts/device-crash-test | 44 ++++++++++++++++++++++---------------------- 1 file changed, 22 insertions(+), 22 deletions(-) diff --git a/scripts/device-crash-test b/scripts/device-crash-test index f406890519..ed9a552fa1 100755 --- a/scripts/device-crash-test +++ b/scripts/device-crash-test @@ -228,28 +228,28 @@ ERROR_WHITELIST =3D [ {'exitcode':1, 'loglevel':logging.INFO}, =20 # KNOWN CRASHES: - # Known crashes will generate error messages, but won't be fatal. - # Those entries must be removed once we fix the crashes. - {'exitcode':-6, 'log':r"Device 'serial0' is in use", 'loglevel':loggin= g.ERROR}, - {'exitcode':-6, 'log':r"qemu_net_client_setup: Assertion `!peer->peer'= failed", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r'RAMBlock "[\w.-]+" already registered', 'logle= vel':logging.ERROR}, - {'exitcode':-6, 'log':r"find_ram_offset: Assertion `size !=3D 0' faile= d.", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"add_cpreg_to_hashtable: code should not be rea= ched", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"qemu_alloc_display: Assertion `surface->image = !=3D NULL' failed", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Unexpected error in error_set_from_qdev_prop_e= rror", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Object .* is not an instance of type spapr-mac= hine", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Object .* is not an instance of type generic-p= c-machine", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"Object .* is not an instance of type e500-ccsr= ", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'log':r"vmstate_register_with_alias_id: Assertion `!se= ->compat \|\| se->instance_id =3D=3D 0' failed", 'loglevel':logging.ERROR}, - {'exitcode':-6, 'device':'isa-fdc', 'loglevel':logging.ERROR, 'expecte= d':True}, - {'exitcode':-11, 'device':'gus', 'loglevel':logging.ERROR, 'expected':= True}, - {'exitcode':-11, 'device':'isa-serial', 'loglevel':logging.ERROR, 'exp= ected':True}, - {'exitcode':-11, 'device':'sb16', 'loglevel':logging.ERROR, 'expected'= :True}, - {'exitcode':-11, 'device':'cs4231a', 'loglevel':logging.ERROR, 'expect= ed':True}, - {'exitcode':-11, 'machine':'isapc', 'device':'.*-iommu', 'loglevel':lo= gging.ERROR, 'expected':True}, - {'exitcode':-11, 'device':'mioe3680_pci', 'loglevel':logging.ERROR, 'e= xpected':True}, - {'exitcode':-11, 'device':'pcm3680_pci', 'loglevel':logging.ERROR, 'ex= pected':True}, - {'exitcode':-11, 'device':'kvaser_pci', 'loglevel':logging.ERROR, 'exp= ected':True}, + # Known crashes will generate warn messages + # FIXME: all those crashes MUST be fixed, and all these entries MUST b= e removed + {'exitcode':-6, 'log':r"Device 'serial0' is in use", 'loglevel':loggin= g.WARN}, + {'exitcode':-6, 'log':r"qemu_net_client_setup: Assertion `!peer->peer'= failed", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r'RAMBlock "[\w.-]+" already registered', 'logle= vel':logging.WARN}, + {'exitcode':-6, 'log':r"find_ram_offset: Assertion `size !=3D 0' faile= d.", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"add_cpreg_to_hashtable: code should not be rea= ched", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"qemu_alloc_display: Assertion `surface->image = !=3D NULL' failed", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Unexpected error in error_set_from_qdev_prop_e= rror", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Object .* is not an instance of type spapr-mac= hine", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Object .* is not an instance of type generic-p= c-machine", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"Object .* is not an instance of type e500-ccsr= ", 'loglevel':logging.WARN}, + {'exitcode':-6, 'log':r"vmstate_register_with_alias_id: Assertion `!se= ->compat \|\| se->instance_id =3D=3D 0' failed", 'loglevel':logging.WARN}, + {'exitcode':-6, 'device':'isa-fdc', 'loglevel':logging.WARN, 'expected= ':True}, + {'exitcode':-11, 'device':'gus', 'loglevel':logging.WARN, 'expected':T= rue}, + {'exitcode':-11, 'device':'isa-serial', 'loglevel':logging.WARN, 'expe= cted':True}, + {'exitcode':-11, 'device':'sb16', 'loglevel':logging.WARN, 'expected':= True}, + {'exitcode':-11, 'device':'cs4231a', 'loglevel':logging.WARN, 'expecte= d':True}, + {'exitcode':-11, 'machine':'isapc', 'device':'.*-iommu', 'loglevel':lo= gging.WARN, 'expected':True}, + {'exitcode':-11, 'device':'mioe3680_pci', 'loglevel':logging.WARN, 'ex= pected':True}, + {'exitcode':-11, 'device':'pcm3680_pci', 'loglevel':logging.WARN, 'exp= ected':True}, + {'exitcode':-11, 'device':'kvaser_pci', 'loglevel':logging.WARN, 'expe= cted':True}, =20 # everything else (including SIGABRT and SIGSEGV) will be a fatal erro= r: {'exitcode':None, 'fatal':True, 'loglevel':logging.FATAL}, --=20 2.14.3