From nobody Mon May 6 04:19:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1583337383; cv=none; d=zohomail.com; s=zohoarc; b=fndowAdvwSueZoonYuZBt41Y8qaTDW/GRCeN8BFMjd99ePSRwho71YENbIdivOsjilsnh83BvTxdEtcTso9KaHwoQE4BMY4nd1eAuDEAmZKqoJwSYA23vNT93YuavGt2N1L6uDTCpXeV2+Elek6d9CpDNIBL7zZ8rX+9dwXEOlY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1583337383; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=R+vITDbGWQ/QSOfBUlO+HsscYGE5/NOdS8VG5llObJ8=; b=PzCTN5EB0IMdDI6dTZTMVrIXLP+Rcq4co0HsxnZcfNVuDn+/gL9HsRTB5/RY8EIOoVK7ywemsZa9G012qmq2IGRjFkDkG8yDuh7QbZJKCQ5QtNlMKpfEYl1a/yKGAy6qHW2dYoqO4ni2OJSwoRO58K1D9Q80KN8df04zJ3CNp4s= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1583337383198118.15954852898619; Wed, 4 Mar 2020 07:56:23 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-348-tbL9_27vMAax2tfnMcPKdg-1; Wed, 04 Mar 2020 10:56:18 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1BB018024D8; Wed, 4 Mar 2020 15:56:11 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id CF01A272A5; Wed, 4 Mar 2020 15:56:09 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 98E5218034E9; Wed, 4 Mar 2020 15:56:07 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 024Fu6g4020045 for ; Wed, 4 Mar 2020 10:56:06 -0500 Received: by smtp.corp.redhat.com (Postfix) id A13CD3A2; Wed, 4 Mar 2020 15:56:06 +0000 (UTC) Received: from lpt.redhat.com (unknown [10.43.2.81]) by smtp.corp.redhat.com (Postfix) with ESMTP id 26CF119C58 for ; Wed, 4 Mar 2020 15:56:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1583337381; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=R+vITDbGWQ/QSOfBUlO+HsscYGE5/NOdS8VG5llObJ8=; b=P2fBCfFKF+ND5ROAb6syWKJwsJ9qHndXQGF9WzM3r3BQ/wP+gMxH712RVXF2GROirGPlVz pDcpiREVqtJhKPHpQRVjHPPqqGQsVGrxBnzfvJAgJYgWORpINsO6KIfreXzfTu/hUMya4B f0iK1bDPC7gZ3DKBRvcdPKx6NmI47Js= X-MC-Unique: tbL9_27vMAax2tfnMcPKdg-1 From: =?UTF-8?q?J=C3=A1n=20Tomko?= To: libvir-list@redhat.com Subject: [libvirt PATCH] tests: do not include skipped tests in failedTests Date: Wed, 4 Mar 2020 16:56:02 +0100 Message-Id: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We recognize three return values from tests: * OK -> 0 * SKIP -> EXIT_AM_SKIP * ERROR -> anything else Also check for EXIT_AM_SKIP when building a bitmap of failed tests, otherwise the skipped tests would be printed in the suggested range of tests that shoud be re-run. Reported-by: Peter Krempa Signed-off-by: J=C3=A1n Tomko Fixes: cebb468ef5e82b8d4253e27ef70c67812cf93c5a Reviewed-by: Peter Krempa --- tests/testutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testutils.c b/tests/testutils.c index 2f6d65364e..5fd81b70a2 100644 --- a/tests/testutils.c +++ b/tests/testutils.c @@ -172,7 +172,7 @@ virTestRun(const char *title, fprintf(stderr, "!"); } =20 - if (ret !=3D 0) + if (ret !=3D 0 && ret !=3D EXIT_AM_SKIP) ignore_value(virBitmapSetBitExpand(failedTests, testCounter)); =20 g_unsetenv("VIR_TEST_MOCK_TESTNAME"); --=20 2.24.1