[LTP] [PATCH 1/1] doc: Sort items in the test catalog
Petr Vorel
pvorel@suse.cz
Wed Feb 12 15:24:23 CET 2025
Sorting items with 'sort' in metadata/parse.sh does not help, because
whole path is sorted, not file name only.
NOTE: I would keep the 'sort' in metadata/parse.sh due JSON file build
reproducibility.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
doc/conf.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/doc/conf.py b/doc/conf.py
index 0bebd0e242..03fcff67e8 100644
--- a/doc/conf.py
+++ b/doc/conf.py
@@ -435,7 +435,7 @@ def generate_test_catalog(_):
timeout_def = metadata['defaults']['timeout']
- for test_name, conf in metadata['tests'].items():
+ for test_name, conf in sorted(metadata['tests'].items()):
text.extend([
f'{test_name}',
len(test_name) * '-'
--
2.47.2
More information about the ltp
mailing list