[Fuego] [PATCH] ftc: Correct info about using --where option

Tim.Bird at sony.com Tim.Bird at sony.com
Wed Feb 7 01:14:51 UTC 2018



> -----Original Message-----
> From: Hoang Van Tuyen
> 
> In list-runs and gen-report command_helps, It had examples for where
> option
> like below:
> --where test=Benchmark.bonnie,board=beaglebone
> But, the value of test should be bonnie, not include test type Benchmark.
> This patch updates the help to avoid misunderstanding for using --where
> option.

Thanks.  I knew about this problem for some time, but did nothing
to fix it.

I applied this patch, and in another patch, made a change to
ftc to allow specifying either just the base name of the test,
or the full name - with "Benchmark." or "Functional." prefix.

There are some tests with the same test name (such as
Benchmark.netperf and Functional.netperf), so just
specifying the base test name might not show you what you
want.

Now you can do:
 --where test=Functional.netperf
or
--where test=netperf

The second one will show both Functional and Benchmark results.

Applied.

Thanks,
 -- Tim

> Signed-off-by: Hoang Van Tuyen <tuyen.hoangvan at toshiba-tsdv.com>
> ---
>   engine/scripts/ftc | 8 ++++----
>   1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/engine/scripts/ftc b/engine/scripts/ftc
> index bde3694..0d162e1 100755
> --- a/engine/scripts/ftc
> +++ b/engine/scripts/ftc
> @@ -165,8 +165,8 @@ command_help = {
>     Allowed operators are: '=','<','<=','>','>=','!=','=~'.  The '=~'
> operator
>     means the value is a regular expression to match, for the indicated
> field.
>     Here are some example where options:
> -     --where test=Functional.LTP
> -     --where test=Benchmark.bonnie,board=beaglebone
> +     --where test=LTP
> +     --where test=bonnie,board=beaglebone
>        --where "start_time>2 hours ago"
>     """),
> 
> @@ -312,8 +312,8 @@ the 'foo' function from the board file, you would
> use do this:
>     Allowed operators are: '=','<','<=','>','>=','!=','=~'.  The '=~'
> operator
>     means the value is a regular expression to match, for the indicated
> field.
>     Here are some example where options:
> -     --where test=Functional.LTP
> -     --where test=Benchmark.bonnie,board=beaglebone
> +     --where test=LTP
> +     --where test=bonnie,board=beaglebone
>        --where "start_time>2 hours ago"
>        --where batch_id=12
>     """),
> --
> 2.1.4


More information about the Fuego mailing list