[PATCH 3/6] lib: fwts_framework: output all logfile names being written to
Keng-Yu Lin
kengyu at canonical.com
Wed Jun 20 15:01:17 UTC 2012
On Wed, Jun 20, 2012 at 7:30 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> With multi-logging we need to mention all the log file names
> that we are writing to.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
> 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);
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list