[3/4] testsuite: make repro test image type agnostic

Message ID 20260821094038.1816837-3-felix.moessbauer@siemens.com
State Under Review
Headers show
Series [1/4] testsuite: allow to run all tests below testsuite in container | expand

Commit Message

Felix Moessbauer Aug. 21, 2026, 9:40 a.m. UTC
The ReproBuild test already supports to parameterize the build target.
However, it always expects a build target that actually generates a
.tar.zst image (which is not the case for most targets).

Signed-off-by: Felix Moessbauer <felix.moessbauer@siemens.com>
---
 testsuite/repro-build-test.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Patch

diff --git a/testsuite/repro-build-test.py b/testsuite/repro-build-test.py
index eb2cb3b1..6234a8d7 100755
--- a/testsuite/repro-build-test.py
+++ b/testsuite/repro-build-test.py
@@ -51,9 +51,13 @@  class ReproBuild(CIBuilder):
 
         # Build
         self.log.info("Started Build " + image_name)
+        image_fstype = '.'.join(image_name.split('.')[1:])
         self.configure(
             targets=target,
-            source_date_epoch=source_date_epoch, use_apt_snapshot=True
+            source_date_epoch=source_date_epoch, use_apt_snapshot=True,
+            lines=[
+                f'IMAGE_FSTYPES = "{image_fstype}"',
+            ]
         )
         self.bitbake(target)