[LTP] [PATCH v3] metadata: add linter for JSON file

Cyril Hrubis chrubis@suse.cz
Tue Aug 4 14:02:35 CEST 2026


Hi!
> > What I had in mind for make check is that there would be a single test
> > mode "-t" switch and we would skip the extract_tests and passed the JSON
> > right to lint_tests()
> > 
> > ./metaparse foo.c | lint.py -t
> 
> ok, so as far as I understand, you don't want to have a linter that checks
> automatically for all tests in metadata, but selectively check the one we
> need? Considering how fast we are to parse metadata and to run linter,
> we are 1 pipe away from your solution by using grep:
> 
>     lint.py metadata.json | grep <test>

I want both, this single file should be part of make check-foo

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list