[LTP] [PATCH] Fix the statistical number of results in the html

Kane Wong (王楷元) wangkaiyuan@inspur.com
Sun Sep 26 03:23:13 CEST 2021


Hi,

> Hi,
> 
> > From: wangkaiyuan <wangkaiyuan@inspur.com>
> 
> > According to the statistical method of ltp-pan on TFAIL TBROK TCONF
> > TPASS..., the statistical method of the ltp test result type in
> > genhtml.pl is modified to ensure that the .log format of the ltp
> > result is consistent with the test result in the .html format.
> 
> > The original statistical method policy expression "/\ TFAIL\ /" in the
> > original genhtml.pl for the test result type cannot match the "TFAIL:"
> > in the normal test result, causing problems in the
> This could be fixed with :?, right?
First of all, the regular expression matching error causes the html result
to be inconsistent with the log result. If only the regular expression is 
modified, it will cause multiple test results for one test item.For example,
if TPSS/TCONF appears in the same test item, the test item will be
counted twice, TPSS&TCONF, this is unreasonable, and the statistical 
logic in genhtml.pl is flawed

Kind regards,
wangkaiyuan
> > calculation result. At the same time, the statistical method in
> > genhtml.pl cannot guarantee that each test item has only one test
> > result, because the output of a test item may include TFAIL, TCONF,
> > and TPASS at the same time.
> That's a valid input.
> 
> > Signed-off-by: wangkaiyuan <wangkaiyuan@inspur.com>
> >                Chunsing.dey <daichx@inspur.com>
> nit: both should have Signed-off-by:, you can also use Co-developed-by:
> for the second developer.
> 
> nit: there are whitespace errors in the patch.
> 
> I do not dare to review it as I've never used the tool.
> FYI ltp-pan is deprecated, you can try to use runltp-ng [1] which we'd
like to
> bring to LTP upstream (to replace ltp-pan and runltp).
> 
> Kind regards,
> Petr
> 
> [1] https://github.com/metan-ucw/runltp-ng

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 3783 bytes
Desc: not available
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210926/5334caf2/attachment.bin>


More information about the ltp mailing list