[PATCH 3/6] lib: fwts_framework: output all logfile names being written to

Alex Hung alex.hung at canonical.com
Thu Jun 21 01:04:12 UTC 2012


On 06/20/2012 07:30 PM, Colin King 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);
Acked-by: Alex Hung <alex.hung at canonical.com>




More information about the fwts-devel mailing list