From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?q?Radim=20Kr=C4=8Dm=C3=A1=C5=99?= 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> References: <1462983171-4208-1-git-send-email-rkrcmar@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Paolo Bonzini , Andrew Jones To: kvm@vger.kernel.org Return-path: 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) In-Reply-To: <1462983171-4208-1-git-send-email-rkrcmar@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Reviewed-by: Andrew Jones Signed-off-by: Radim Kr=C4=8Dm=C3=A1=C5=99 --- 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); =20 - 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) --=20 2.8.2