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

Cyril Hrubis chrubis@suse.cz
Fri Jun 10 13:46:07 CEST 2022


Hi!
First of all, sorry for the delay in response.

Secondly the genhtml.pl is basically unmaintained and we hope to replace
runltp and the tooling around that with runltp-ng ideally within a year,
at least I hope to do so.

The patch itself looks reasonable, minus some whitespaces that break the
indentation. So unless somebody is against it, we can as well apply it,
that is after you fix the whitespaces. I think that in reality nobody
really cares about the script anymore so noone will block the change.

> 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 
> 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.
> 
> Signed-off-by: wangkaiyuan <wangkaiyuan@inspur.com> 
>                Chunsing.dey <daichx@inspur.com>

Each line here has to start with the 'Signed-off-by: '

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list