[LTP] [PATCH v2 5/7] docparse: Add type normalization

Richard Palethorpe rpalethorpe@suse.de
Tue Nov 2 12:52:34 CET 2021


Hello,

Cyril Hrubis <chrubis@suse.cz> writes:

> For now just for .test_variants.
>
> There are two reasons for this:
>
> - This code makes sure that we get right value parsed and aborts the
>   compilation if the parser got confused. This part is important since
>   if the testrunners are going to use the metadata the data in there
>   must be correct.

I can't resist saying this would likely be solved by Sparse and its
understanding of C types. However in the present context it makes
perfect sense.

>
> - And much less important it makes the resulting json nicer to read
>
> Signed-off-by: Cyril Hrubis <chrubis@suse.cz>
Reviewed-by: rpalethorpe@suse.com

-- 
Thank you,
Richard.


More information about the ltp mailing list