[PATCH 2/3] lib: fwts_summary: handle the log_type now that it is a bit map
Alex Hung
alex.hung at canonical.com
Mon Jun 18 03:12:45 UTC 2012
On 06/11/2012 06:00 PM, 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);
Acked-by: Alex Hung <alex.hung at canonical.com>
More information about the fwts-devel
mailing list