From patchwork Mon Jun 11 10:00:37 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Colin Ian King X-Patchwork-Id: 164114 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from chlorine.canonical.com (chlorine.canonical.com [91.189.94.204]) by ozlabs.org (Postfix) with ESMTP id ABFFE1007D2 for ; Mon, 11 Jun 2012 20:00:48 +1000 (EST) Received: from localhost ([127.0.0.1] helo=chlorine.canonical.com) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Se1QV-0006Km-FT for incoming@patchwork.ozlabs.org; Mon, 11 Jun 2012 10:00:47 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1Se1QQ-0006KN-NS for fwts-devel@lists.ubuntu.com; Mon, 11 Jun 2012 10:00:42 +0000 Received: from cpc19-craw6-2-0-cust5.croy.cable.virginmedia.com ([77.102.228.6] helo=localhost) by youngberry.canonical.com with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1Se1QQ-0000bH-L0 for fwts-devel@lists.ubuntu.com; Mon, 11 Jun 2012 10:00:42 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 2/3] lib: fwts_summary: handle the log_type now that it is a bit map Date: Mon, 11 Jun 2012 11:00:37 +0100 Message-Id: <1339408838-31877-3-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1339408838-31877-1-git-send-email-colin.king@canonical.com> References: <1339408838-31877-1-git-send-email-colin.king@canonical.com> X-BeenThere: fwts-devel@lists.ubuntu.com X-Mailman-Version: 2.1.13 Precedence: list List-Id: Firmware Test Suite Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: fwts-devel-bounces@lists.ubuntu.com Errors-To: fwts-devel-bounces@lists.ubuntu.com From: Colin Ian King Signed-off-by: Colin Ian King Tested-by: Chris Van Hoof Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- src/lib/src/fwts_summary.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/src/fwts_summary.c b/src/lib/src/fwts_summary.c index 8070a34..b8fe644 100644 --- a/src/lib/src/fwts_summary.c +++ b/src/lib/src/fwts_summary.c @@ -255,8 +255,8 @@ int fwts_summary_report(fwts_framework *fw, fwts_list *test_list) fwts_log_nl(fw); } - if ((fw->log_type == LOG_TYPE_PLAINTEXT || - fw->log_type == LOG_TYPE_HTML) && fw->total_run > 0) { + if ((fw->log_type & (LOG_TYPE_PLAINTEXT| LOG_TYPE_HTML)) && + fw->total_run > 0) { sorted = fwts_list_new(); fwts_list_foreach(item, test_list) fwts_list_add_ordered(sorted, fwts_list_data(fwts_framework_test *,item), fwts_framework_compare_test_name);