[PATCH 2/3] lib: fwts_summary: handle the log_type now that it is a bit map

Chris Van Hoof vanhoof at canonical.com
Mon Jun 11 15:54:11 UTC 2012


On 06/11/2012 06:00 AM, Colin King wrote:
> From: Colin Ian King <colin.king at canonical.com>
> 
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  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);

Gave this a spin with fwts -b --log-type html,plaintext ... results can
be found here:

http://ouwish.com/~vanhoof/pickup/cking/fwts_2012-06-11/

Tested-by: Chris Van Hoof <vanhoof at canonical.com>




More information about the fwts-devel mailing list