[LTP] [PATCH 1/1] Docparse: Escape | in table content

Petr Vorel pvorel@suse.cz
Wed Dec 16 16:10:33 CET 2020


Hi Cyril,

> Hi!
> Looks good to me, acked.
thanks for your review, merged!

BTW I wonder how to fix .test_variants in JSON:
"test_variants": "ARRAY_SIZE"

It's in many tests, e.g.  testcases/kernel/syscalls/clock_gettime/clock_gettime02.c.

Also many arrays should be anonymous, e.g. exe_options (for .options) and
resource_files (for .resource_files) in testcases/kernel/syscalls/execve/execve05.c.
I wonder if there can be smarter solution before we fix it.

But using inline for .options (and other two dimensional array needs to be fixed
again in the parser: it now prints array reference: ARRAY(0x563186f58048)
(for testcases/kernel/syscalls/ioctl/ioctl01.c).

Because this disables reusing things (putting them in the header). But you
probably prefer it than slower down parsing with preprocessor.
But we need to state this policy in docs.

Kind regards,
Petr


More information about the ltp mailing list