From patchwork Wed Jun 20 11:30:26 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: 166014 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 93515B6FC3 for ; Wed, 20 Jun 2012 21:30:34 +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 1ShJ7I-0001fV-Tm for incoming@patchwork.ozlabs.org; Wed, 20 Jun 2012 11:30:32 +0000 Received: from youngberry.canonical.com ([91.189.89.112]) by chlorine.canonical.com with esmtp (Exim 4.71) (envelope-from ) id 1ShJ7H-0001fB-Kj for fwts-devel@lists.ubuntu.com; Wed, 20 Jun 2012 11:30:31 +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 1ShJ7H-00026Y-IH for fwts-devel@lists.ubuntu.com; Wed, 20 Jun 2012 11:30:31 +0000 From: Colin King To: fwts-devel@lists.ubuntu.com Subject: [PATCH 3/6] lib: fwts_framework: output all logfile names being written to Date: Wed, 20 Jun 2012 12:30:26 +0100 Message-Id: <1340191829-27444-4-git-send-email-colin.king@canonical.com> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1340191829-27444-1-git-send-email-colin.king@canonical.com> References: <1340191829-27444-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 With multi-logging we need to mention all the log file names that we are writing to. Signed-off-by: Colin Ian King Acked-by: Keng-Yu Lin Acked-by: Alex Hung --- src/lib/src/fwts_framework.c | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c index b9c6f58..f53bbf2 100644 --- a/src/lib/src/fwts_framework.c +++ b/src/lib/src/fwts_framework.c @@ -1184,10 +1184,16 @@ int fwts_framework_args(const int argc, char **argv) } } - if (!(fw->flags & FWTS_FRAMEWORK_FLAGS_QUIET)) - printf("Running %d tests, results appended to %s\n", - fwts_list_len(&tests_to_run), - fw->results_logname); + if (!(fw->flags & FWTS_FRAMEWORK_FLAGS_QUIET)) { + char *filenames = fwts_log_get_filenames(fw->results_logname, fw->log_type); + + if (filenames) { + printf("Running %d tests, results appended to %s\n", + fwts_list_len(&tests_to_run), + filenames); + free(filenames); + } + } fwts_log_section_begin(fw->results, "heading"); fwts_framework_heading_info(fw, &tests_to_run);