All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bird, Timothy" <Tim.Bird@sony.com>
To: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>,
	"fuego@lists.linuxfoundation.org"
	<fuego@lists.linuxfoundation.org>
Subject: Re: [Fuego] [PATCH 04/16] parser: remove error message when no matches
Date: Thu, 30 Mar 2017 20:51:23 +0000	[thread overview]
Message-ID: <ECADFF3FD767C149AD96A924E7EA6EAF104BE0E3@USCULXMSG01.am.sony.com> (raw)
In-Reply-To: <f0170dd6297b2bbe707db2c9ca582d9d51434ed8.1490835200.git.daniel.sangorrin@toshiba.co.jp>



> -----Original Message-----
> From Daniel Sangorrin on Wednesday, March 29, 2017 6:05 PM
>
> This is not supposed to be a parser error, it's rather
> an error in the test which is already managed later

I don't see anywhere else in the parser where failure to find the
benchmark metrics is reported to the user.  This test is a bit crude.
A better one would be to check for all metrics that are supposed
to be there.  (That test would have to be test-specific, and the
way some parsers work is they don't even have the strings for
the metrics themselves - it comes from the regex applied to the
test log.  So maybe this idea is not feasible.)

Is there somewhere else in the system (besides the parser) that catches
this type of error and reports it to the user?  (I guess missing benchmark
data might do it.)
 -- Tim

 
> Signed-off-by: Daniel Sangorrin <daniel.sangorrin@toshiba.co.jp>
> ---
>  engine/scripts/parser/common.py | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/engine/scripts/parser/common.py
> b/engine/scripts/parser/common.py
> index d0bdde5..fd74827 100644
> --- a/engine/scripts/parser/common.py
> +++ b/engine/scripts/parser/common.py
> @@ -98,9 +98,8 @@ def write_report_results(rep_data):
> 
> 
>  def process_data(ref_section_pat, cur_dict, m, label):
> -	if not cur_dict:
> -		print "\nFuego error reason: could not parse test results in
> %s\n" % CUR_LOG
> -		sys.exit(1)
> +        if not cur_dict:
> +                sys.exit(1)
> 
>          if custom_write_report == False:
>                  write_report_results(cur_dict)
> --
> 2.7.4
> 
> 
> _______________________________________________
> Fuego mailing list
> Fuego@lists.linuxfoundation.org
> https://lists.linuxfoundation.org/mailman/listinfo/fuego

  reply	other threads:[~2017-03-30 20:51 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-03-30  1:04 [Fuego] fuego-core patches (migration to testspecs and more) Daniel Sangorrin
2017-03-30  1:04 ` [Fuego] [PATCH 01/16] indentation: fix indentation for dhrystone parser Daniel Sangorrin
2017-03-30  1:04   ` [Fuego] [PATCH 02/16] abort: fix the abort function Daniel Sangorrin
2017-03-30 20:26     ` Bird, Timothy
2017-03-30 20:29     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 03/16] shell e flag: remove any e flag from fuego Daniel Sangorrin
2017-03-30 20:40     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 04/16] parser: remove error message when no matches Daniel Sangorrin
2017-03-30 20:51     ` Bird, Timothy [this message]
2017-03-30  1:04   ` [Fuego] [PATCH 05/16] benchmark: use the same pattern as in functional Daniel Sangorrin
2017-03-30 20:54     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 06/16] board file: remove conf from the path to the board file Daniel Sangorrin
2017-03-30 21:24     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 07/16] batch: remove batch_testplan reference Daniel Sangorrin
2017-03-30 21:32     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 08/16] testplans: use testspecs instead of testplans internally Daniel Sangorrin
2017-03-30 21:43     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 09/16] distrib: DISTRIB must be defined in the board file Daniel Sangorrin
2017-03-30 22:46     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 10/16] user_checks: add to commands so they execute under jenkins Daniel Sangorrin
2017-03-30 22:49     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 11/16] ftc:rm-jobs: remove limitation of 4 words Daniel Sangorrin
2017-03-30 22:50     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 12/16] description setter: put log if the test fails Daniel Sangorrin
2017-03-30 23:04     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 13/16] ftc: remove testplans and use testspecs Daniel Sangorrin
2017-03-30 23:06     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 14/16] ftc test: remove distrib and update paths Daniel Sangorrin
2017-03-30 23:13     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 15/16] fail_check_cases should not abort the job Daniel Sangorrin
2017-03-30 23:16     ` Bird, Timothy
2017-03-30  1:04   ` [Fuego] [PATCH 16/16] a bit of cleaning and style fixes Daniel Sangorrin
2017-03-30 23:19     ` Bird, Timothy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ECADFF3FD767C149AD96A924E7EA6EAF104BE0E3@USCULXMSG01.am.sony.com \
    --to=tim.bird@sony.com \
    --cc=daniel.sangorrin@toshiba.co.jp \
    --cc=fuego@lists.linuxfoundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.