[PATCH 2/3] lib: fwts_summary: handle the log_type now that it is a bit map
Keng-Yu Lin
kengyu at canonical.com
Wed Jun 13 09:49:32 UTC 2012
On Mon, Jun 11, 2012 at 6:00 PM, Colin King <colin.king at canonical.com> 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);
> --
> 1.7.10.4
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>
More information about the fwts-devel
mailing list