From baa7c439292990731358aad6242cea6e1a1d206c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20H=C3=B6ppner?= <jonas.hoeppner@garz-fricke.com>
Date: Fri, 14 Mar 2025 10:14:31 +0100
Subject: [PATCH] CI: report_image_diff: Fallback to rootfs.tar.gz pattern as
 default

The default was an empty pattern before, so not working if the distro
name was not handled in the code. This way it should match more cases.
---
 scripts/report_image_diff.py | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/scripts/report_image_diff.py b/scripts/report_image_diff.py
index 680477c8..388fefc5 100755
--- a/scripts/report_image_diff.py
+++ b/scripts/report_image_diff.py
@@ -183,12 +183,10 @@ def main():
             # The image file format may vary depending on machine and distribution.
             if distro == "seconorth-fngsystem":
                 img_pattern = "*.rootfs.cpio.gz"
-            elif distro == "seconorth-wayland":
+            else:
                 img_pattern = "*.rootfs.tar.gz"
                 if "genio" in machine:
                     img_pattern = "*.rootfs.wic.img"
-            else:
-                img_pattern = ""
 
             for name, size in deploy_files__main.items():
                 if fnmatch.fnmatch(name, img_pattern):
-- 
GitLab