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

Petr Vorel pvorel@suse.cz
Fri Sep 24 12:04:14 CEST 2021


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?

> 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


More information about the ltp mailing list