From patchwork Wed May 11 16:12:49 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?b?UmFkaW0gS3LEjW3DocWZ?= X-Patchwork-Id: 9072651 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 74977BF29F for ; Wed, 11 May 2016 16:13:44 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id BAEEE200E8 for ; Wed, 11 May 2016 16:13:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id EB771200E5 for ; Wed, 11 May 2016 16:13:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932165AbcEKQNa (ORCPT ); Wed, 11 May 2016 12:13:30 -0400 Received: from mx1.redhat.com ([209.132.183.28]:49240 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932091AbcEKQN2 (ORCPT ); Wed, 11 May 2016 12:13:28 -0400 Received: from int-mx09.intmail.prod.int.phx2.redhat.com (int-mx09.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 18AC813A5F for ; Wed, 11 May 2016 16:13:28 +0000 (UTC) Received: from potion (dhcp-1-215.brq.redhat.com [10.34.1.215]) by int-mx09.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with SMTP id u4BGDPCS029830; Wed, 11 May 2016 12:13:26 -0400 Received: by potion (sSMTP sendmail emulation); Wed, 11 May 2016 18:13:25 +0200 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= To: kvm@vger.kernel.org Cc: Paolo Bonzini , Andrew Jones Subject: [kvm-unit-tests PATCH v4 07/13] lib/report: don't print 0 failed tests Date: Wed, 11 May 2016 18:12:49 +0200 Message-Id: <1462983171-4208-8-git-send-email-rkrcmar@redhat.com> In-Reply-To: <1462983171-4208-1-git-send-email-rkrcmar@redhat.com> References: <1462983171-4208-1-git-send-email-rkrcmar@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Wed, 11 May 2016 16:13:28 +0000 (UTC) Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Spam-Status: No, score=-8.3 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Reviewed-by: Andrew Jones Signed-off-by: Radim Kr?má? --- lib/report.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/report.c b/lib/report.c index 430b2aeaecbd..4cd75534f978 100644 --- a/lib/report.c +++ b/lib/report.c @@ -95,7 +95,9 @@ int report_summary(void) { spin_lock(&lock); - printf("\nSUMMARY: %d tests, %d unexpected failures", tests, failures); + printf("\nSUMMARY: %d tests", tests); + if (failures) + printf(", %d unexpected failures", failures); if (xfailures) printf(", %d expected failures", xfailures); if (skipped)