diff mbox series

[yocto-autobuilder-helper,v2,7/7] scripts/yocto-supported-distros: add --poky-distros option

Message ID 20250806-check-worker-statuses-v2-7-59dd990d22e7@bootlin.com
State New
Headers show
Series scripts/yocto-supported-distros improvements | expand

Commit Message

Antonin Godard Aug. 6, 2025, 3:43 p.m. UTC
Add a --poky-distros option to list the distributions listed in
SANITY_TESTED_DISTROS in the desired format. This means that the strings
can be converted from lsb to docs, for yocto-docs.

Signed-off-by: Antonin Godard <antonin.godard@bootlin.com>
---
 scripts/yocto-supported-distros | 13 +++++++++++++
 1 file changed, 13 insertions(+)
diff mbox series

Patch

diff --git a/scripts/yocto-supported-distros b/scripts/yocto-supported-distros
index fa5b819..e70943d 100755
--- a/scripts/yocto-supported-distros
+++ b/scripts/yocto-supported-distros
@@ -157,6 +157,10 @@  def parse_arguments() -> argparse.Namespace:
                     action="store_true",
                     help="Compare to poky.conf releases")
 
+    g3.add_argument("--poky-distros",
+                    action="store_true",
+                    help="Print previously tested distros")
+
     g3.add_argument("--old-distros",
                     action="store_true",
                     help="Print previously tested distros")
@@ -413,6 +417,15 @@  def main():
         else:
             print("All good!")
 
+    elif args.poky_distros:
+        poky_distros = _get_poky_distros()
+        workers = set()
+        for w in poky_distros:
+            mangled_w = _mangle_worker(w, "lsb", args.output_format)
+            if mangled_w:
+                workers.add(mangled_w)
+        _print_workers(release, workers)
+
     elif args.old_distros:
         if release == "master":
             print("The --old-distros argument only makes sense for stable release")