[PATCH] lib: fwts_framework: test names should be dislayed in a wider format field

Keng-Yu Lin kengyu at canonical.com
Tue Dec 18 03:46:22 UTC 2012


On Mon, Dec 17, 2012 at 7:07 PM, Colin King <colin.king at canonical.com> wrote:
> From: Colin Ian King <colin.king at canonical.com>
>
> We are currently just printing the first 13 chars of the test name in the
> --show-tests and --show-tests-full options.  We should expand this to 15
> chars to cope with the larger test names being used nowadays.
>
> Signed-off-by: Colin Ian King <colin.king at canonical.com>
> ---
>  src/lib/src/fwts_framework.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/lib/src/fwts_framework.c b/src/lib/src/fwts_framework.c
> index eac05bd..c355ca0 100644
> --- a/src/lib/src/fwts_framework.c
> +++ b/src/lib/src/fwts_framework.c
> @@ -265,7 +265,7 @@ static void fwts_framework_show_tests(fwts_framework *fw, bool full)
>                                         test = fwts_list_data(fwts_framework_test *, item);
>                                         if (full) {
>                                                 int j;
> -                                               printf(" %-13.13s (%d test%s):\n",
> +                                               printf(" %-15.15s (%d test%s):\n",
>                                                         test->name, test->ops->total_tests,
>                                                         test->ops->total_tests > 1 ? "s" : "");
>                                                 for (j=0; j<test->ops->total_tests;j++)
> @@ -273,7 +273,7 @@ static void fwts_framework_show_tests(fwts_framework *fw, bool full)
>                                                 total += test->ops->total_tests;
>                                         }
>                                         else {
> -                                               printf(" %-13.13s %s\n", test->name,
> +                                               printf(" %-15.15s %s\n", test->name,
>                                                         test->ops->description ? test->ops->description : "");
>                                         }
>                                 }
> --
> 1.8.0
>
Acked-by: Keng-Yu Lin <kengyu at canonical.com>



More information about the fwts-devel mailing list