All of lore.kernel.org
 help / color / mirror / Atom feed
* [LTP] [PATCH 1/1] doc: Sort items in the test catalog
@ 2025-02-12 14:24 Petr Vorel
  2025-02-12 14:33 ` Andrea Cervesato via ltp
  0 siblings, 1 reply; 3+ messages in thread
From: Petr Vorel @ 2025-02-12 14:24 UTC (permalink / raw)
  To: ltp

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


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp

^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-02-12 15:40 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-12 14:24 [LTP] [PATCH 1/1] doc: Sort items in the test catalog Petr Vorel
2025-02-12 14:33 ` Andrea Cervesato via ltp
2025-02-12 15:39   ` Petr Vorel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.