[LTP] [PATCH v1] doc: update filesystems info according to new metadata

Andrea Cervesato andrea.cervesato@suse.de
Fri Jul 11 15:29:19 CEST 2025


From: Andrea Cervesato <andrea.cervesato@suse.com>

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>
---
Follow up patch for
https://patchwork.ozlabs.org/project/ltp/list/?series=464762

 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