[LTP] [PATCH v2 2/2] metaparse: Map arrays with designated initializers to JSON objects
Cyril Hrubis
chrubis@suse.cz
Fri Jul 11 15:14:06 CEST 2025
Hi!
> Now docs seem to be broken for tst_test.filesystems. This patch will
> solve the issue and it needs to be added to the patch-set:
>
> diff --git a/doc/conf.py b/doc/conf.py
> index da768232b..cadfeb2b3 100644
> --- a/doc/conf.py
> +++ b/doc/conf.py
> @@ -406,13 +406,12 @@ def _generate_setup_table(keys):
> else:
> values.append(f'{value[0]}, {value[1]}')
> elif key == 'filesystems':
> - for v in value:
> - for item in v:
> - if isinstance(item, list):
> - continue
> -
> - if item.startswith('.type'):
> - values.append(item.replace('.type=', ''))
> + for params in value:
> + for pkey, pval in params.items():
> + if pkey == "type":
> + values.append(f"- {pval}")
> + else:
> + values.append(f" {pkey}: {pval}")
> elif key == "save_restore":
> for item in value:
> values.append(item[0])
Can you please send a proper patch so that I can apply all three patches
together?
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list