[LTP] [PATCH v2 2/2] metaparse: Map arrays with designated initializers to JSON objects
Andrea Cervesato
andrea.cervesato@suse.com
Fri Jul 11 15:19:44 CEST 2025
On 7/11/25 3:14 PM, Cyril Hrubis wrote:
> 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?
>
From 072dacd2072d0cf3acce9d623091ab0e586e4799 Mon Sep 17 00:00:00 2001
From: Andrea Cervesato <andrea.cervesato@suse.com>
Date: Fri, 11 Jul 2025 15:17:12 +0200
Subject: [PATCH v1] doc: update filesystems info according to new metadata
To: ltp@lists.linux.it
New metadata is now using a dictionary definition for
tst_test.filesystems. This patch will correctly show the filesystems
setup information inside the html page.
Signed-off-by: Andrea Cervesato <andrea.cervesato@suse.com>
---
doc/conf.py | 13 ++++++-------
1 file changed, 6 insertions(+), 7 deletions(-)
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])
--
2.50.0
More information about the ltp
mailing list