From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Sony.onmicrosoft.com; s=selector1-Sony-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=E2xbPkhkJImfOAeDlpHC+qpVhBHRJfiUFW4viEW+IXA=; b=EJGE4Q6yX6GstPuMfzibO8YSk1NcSzX+eE6TKw44iqhsk8/AotQOX9yTue4qWLRmieI4B1L6+X5V4bpVJ7W3YlLhBio+RVMIkWNQP+5rHOsMg4k1tgIMYIjTMa1twxsc9Cs6/WFHIAKhIGccrD8U+7cv8835kuJel2DqLsD0ESs= From: "Bird, Timothy" Date: Thu, 14 Dec 2017 01:07:54 +0000 Message-ID: References: <1513154537-11933-1-git-send-email-daniel.sangorrin@toshiba.co.jp> <1513154537-11933-3-git-send-email-daniel.sangorrin@toshiba.co.jp> In-Reply-To: <1513154537-11933-3-git-send-email-daniel.sangorrin@toshiba.co.jp> Content-Language: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [Fuego] [PATCH 2/2] LTP:ltp_process: parse the rt.log into a new sheet List-Id: Mailing list for the Fuego test framework List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Daniel Sangorrin , "fuego@lists.linuxfoundation.org" > -----Original Message----- > From: fuego-bounces@lists.linuxfoundation.org [mailto:fuego- > bounces@lists.linuxfoundation.org] On Behalf Of Daniel Sangorrin > Sent: Wednesday, December 13, 2017 12:42 AM > To: fuego@lists.linuxfoundation.org > Subject: [Fuego] [PATCH 2/2] LTP:ltp_process: parse the rt.log into a new > sheet >=20 > [Note] I noticed that some tests didn't produce any machine > readable format result. This may need to be patched upstream. See my results below. >=20 > TODO: add support for the normal parser as well. That would be much appreciated! >=20 > Signed-off-by: Daniel Sangorrin > --- > engine/tests/Functional.LTP/ltp_process.py | 24 > ++++++++++++++++++++++++ > 1 file changed, 24 insertions(+) >=20 > diff --git a/engine/tests/Functional.LTP/ltp_process.py > b/engine/tests/Functional.LTP/ltp_process.py > index 867ef7a..eb059f4 100644 > --- a/engine/tests/Functional.LTP/ltp_process.py > +++ b/engine/tests/Functional.LTP/ltp_process.py > @@ -331,6 +331,30 @@ if os.path.exists('pts.log'): > # last working sheet > pts_set_style(ws) >=20 > +if os.path.exists('rt.log'): > + with open('rt.log') as f: > + rt_testcase_regex =3D "^--- Running testcase (.*) ---$" > + rt_results_regex =3D "^\s*Result:\s*(.*)$" > + ws =3D book.create_sheet(title=3D"RT tests") > + row =3D 0 > + ws.cell(row=3Drow,column=3D0).value =3D "Test" > + ws.cell(row=3Drow,column=3D1).value =3D "Result" > + ws.cell(row=3Drow,column=3D2).value =3D "Log" > + for line in f: > + m =3D re.match(rt_testcase_regex, line.rstrip()) > + if m: > + test_case =3D m.group(1) > + row =3D row + 1 > + ws.cell(row=3Drow,column=3D0).value =3D test_case > + m =3D re.match(rt_results_regex, line.rstrip()) > + if m: > + test_result =3D m.group(1) > + ws.cell(row=3Drow,column=3D1).value =3D test_result > + if ws.cell(row=3Drow,column=3D2).value: > + ws.cell(row=3Drow,column=3D2).value =3D > ws.cell(row=3Drow,column=3D2).value + line > + else: > + ws.cell(row=3Drow,column=3D2).value =3D line > + > # if we have added sheets, remove the default one ("Sheet") > sheets =3D book.get_sheet_names() > if len(sheets) > 1: > -- > 2.7.4 Not all results are reported. Here are my results for one of my boards: (in CSV format) rt-migrate,PASS sbrk_mutex,=09 sched_jitter,=09 sched_latency -d 1 -t 5 -c 100,PASS testpi-0 , testpi-1,PASS testpi-2,PASS testpi-4,PASS testpi-5,PASS testpi-6,PASS However, this is a big improvement over not having anything in the spreads= heet for these tests. Both patches applied - thanks! -- Tim